Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
ea783736
Commit
ea783736
authored
Oct 18, 2002
by
Jeb J. Cramer
Committed by
Jeff Garzik
Oct 18, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
e1000 3/10:
* Set interrupt delay timer defaults to 0 across all adapters
parent
42c5b9bd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
11 deletions
+5
-11
drivers/net/e1000/e1000_main.c
drivers/net/e1000/e1000_main.c
+2
-4
drivers/net/e1000/e1000_param.c
drivers/net/e1000/e1000_param.c
+3
-7
No files found.
drivers/net/e1000/e1000_main.c
View file @
ea783736
...
...
@@ -914,8 +914,9 @@ e1000_configure_rx(struct e1000_adapter *adapter)
/* set the Receive Delay Timer Register */
E1000_WRITE_REG
(
&
adapter
->
hw
,
RDTR
,
adapter
->
rx_int_delay
);
if
(
adapter
->
hw
.
mac_type
>=
e1000_82540
)
{
E1000_WRITE_REG
(
&
adapter
->
hw
,
RDTR
,
adapter
->
rx_int_delay
);
E1000_WRITE_REG
(
&
adapter
->
hw
,
RADV
,
adapter
->
rx_abs_int_delay
);
/* Set the interrupt throttling rate. Value is calculated
...
...
@@ -923,9 +924,6 @@ e1000_configure_rx(struct e1000_adapter *adapter)
#define MAX_INTS_PER_SEC 8000
#define DEFAULT_ITR 1000000000/(MAX_INTS_PER_SEC * 256)
E1000_WRITE_REG
(
&
adapter
->
hw
,
ITR
,
DEFAULT_ITR
);
}
else
{
E1000_WRITE_REG
(
&
adapter
->
hw
,
RDTR
,
adapter
->
rx_int_delay
);
}
/* Setup the Base and Length of the Rx Descriptor Ring */
...
...
drivers/net/e1000/e1000_param.c
View file @
ea783736
...
...
@@ -197,8 +197,7 @@ E1000_PARAM(RxAbsIntDelay, "Receive Absolute Interrupt Delay");
#define MIN_RXD 80
#define MAX_82544_RXD 4096
#define DEFAULT_RDTR 128
#define DEFAULT_RDTR_82544 0
#define DEFAULT_RDTR 0
#define MAX_RXDELAY 0xFFFF
#define MIN_RXDELAY 0
...
...
@@ -398,16 +397,13 @@ e1000_check_options(struct e1000_adapter *adapter)
}
{
/* Receive Interrupt Delay */
char
*
rdtr
=
"using default of "
__MODULE_STRING
(
DEFAULT_RDTR
);
char
*
rdtr_82544
=
"using default of "
__MODULE_STRING
(
DEFAULT_RDTR_82544
);
struct
e1000_option
opt
=
{
.
type
=
range_option
,
.
name
=
"Receive Interrupt Delay"
,
.
arg
=
{
r
:
{
min
:
MIN_RXDELAY
,
max
:
MAX_RXDELAY
}}
};
e1000_mac_type
mac_type
=
adapter
->
hw
.
mac_type
;
opt
.
def
=
mac_type
>
e1000_82544
?
DEFAULT_RDTR
:
0
;
opt
.
err
=
mac_type
>
e1000_82544
?
rdtr
:
rdtr_82544
;
opt
.
def
=
DEFAULT_RDTR
;
opt
.
err
=
rdtr
;
adapter
->
rx_int_delay
=
RxIntDelay
[
bd
];
e1000_validate_option
(
&
adapter
->
rx_int_delay
,
&
opt
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment