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
nexedi
linux
Commits
8fdd2e25
Commit
8fdd2e25
authored
Apr 26, 2012
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/net
parents
47d59d01
727c356f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
47 deletions
+54
-47
drivers/net/ethernet/intel/e1000e/netdev.c
drivers/net/ethernet/intel/e1000e/netdev.c
+1
-1
drivers/net/ethernet/intel/e1000e/param.c
drivers/net/ethernet/intel/e1000e/param.c
+53
-46
No files found.
drivers/net/ethernet/intel/e1000e/netdev.c
View file @
8fdd2e25
...
@@ -3799,7 +3799,7 @@ static int e1000_test_msi_interrupt(struct e1000_adapter *adapter)
...
@@ -3799,7 +3799,7 @@ static int e1000_test_msi_interrupt(struct e1000_adapter *adapter)
/* fire an unusual interrupt on the test handler */
/* fire an unusual interrupt on the test handler */
ew32
(
ICS
,
E1000_ICS_RXSEQ
);
ew32
(
ICS
,
E1000_ICS_RXSEQ
);
e1e_flush
();
e1e_flush
();
msleep
(
5
0
);
msleep
(
10
0
);
e1000_irq_disable
(
adapter
);
e1000_irq_disable
(
adapter
);
...
...
drivers/net/ethernet/intel/e1000e/param.c
View file @
8fdd2e25
...
@@ -106,7 +106,7 @@ E1000_PARAM(RxAbsIntDelay, "Receive Absolute Interrupt Delay");
...
@@ -106,7 +106,7 @@ E1000_PARAM(RxAbsIntDelay, "Receive Absolute Interrupt Delay");
/*
/*
* Interrupt Throttle Rate (interrupts/sec)
* Interrupt Throttle Rate (interrupts/sec)
*
*
* Valid Range: 100-100000
(0=off, 1=dynamic, 3=dynamic conservative)
* Valid Range: 100-100000
or one of: 0=off, 1=dynamic, 3=dynamic conservative
*/
*/
E1000_PARAM
(
InterruptThrottleRate
,
"Interrupt Throttling Rate"
);
E1000_PARAM
(
InterruptThrottleRate
,
"Interrupt Throttling Rate"
);
#define DEFAULT_ITR 3
#define DEFAULT_ITR 3
...
@@ -344,53 +344,60 @@ void __devinit e1000e_check_options(struct e1000_adapter *adapter)
...
@@ -344,53 +344,60 @@ void __devinit e1000e_check_options(struct e1000_adapter *adapter)
if
(
num_InterruptThrottleRate
>
bd
)
{
if
(
num_InterruptThrottleRate
>
bd
)
{
adapter
->
itr
=
InterruptThrottleRate
[
bd
];
adapter
->
itr
=
InterruptThrottleRate
[
bd
];
switch
(
adapter
->
itr
)
{
case
0
:
/*
e_info
(
"%s turned off
\n
"
,
opt
.
name
);
* Make sure a message is printed for non-special
break
;
* values. And in case of an invalid option, display
case
1
:
* warning, use default and got through itr/itr_setting
e_info
(
"%s set to dynamic mode
\n
"
,
opt
.
name
);
* adjustment logic below
adapter
->
itr_setting
=
adapter
->
itr
;
*/
adapter
->
itr
=
20000
;
if
((
adapter
->
itr
>
4
)
&&
break
;
e1000_validate_option
(
&
adapter
->
itr
,
&
opt
,
adapter
))
case
3
:
adapter
->
itr
=
opt
.
def
;
e_info
(
"%s set to dynamic conservative mode
\n
"
,
opt
.
name
);
adapter
->
itr_setting
=
adapter
->
itr
;
adapter
->
itr
=
20000
;
break
;
case
4
:
e_info
(
"%s set to simplified (2000-8000 ints) "
"mode
\n
"
,
opt
.
name
);
adapter
->
itr_setting
=
4
;
break
;
default:
/*
* Save the setting, because the dynamic bits
* change itr.
*/
if
(
e1000_validate_option
(
&
adapter
->
itr
,
&
opt
,
adapter
)
&&
(
adapter
->
itr
==
3
))
{
/*
* In case of invalid user value,
* default to conservative mode.
*/
adapter
->
itr_setting
=
adapter
->
itr
;
adapter
->
itr
=
20000
;
}
else
{
/*
* Clear the lower two bits because
* they are used as control.
*/
adapter
->
itr_setting
=
adapter
->
itr
&
~
3
;
}
break
;
}
}
else
{
}
else
{
adapter
->
itr_setting
=
opt
.
def
;
/*
* If no option specified, use default value and go
* through the logic below to adjust itr/itr_setting
*/
adapter
->
itr
=
opt
.
def
;
/*
* Make sure a message is printed for non-special
* default values
*/
if
(
adapter
->
itr
>
40
)
e_info
(
"%s set to default %d
\n
"
,
opt
.
name
,
adapter
->
itr
);
}
adapter
->
itr_setting
=
adapter
->
itr
;
switch
(
adapter
->
itr
)
{
case
0
:
e_info
(
"%s turned off
\n
"
,
opt
.
name
);
break
;
case
1
:
e_info
(
"%s set to dynamic mode
\n
"
,
opt
.
name
);
adapter
->
itr
=
20000
;
break
;
case
3
:
e_info
(
"%s set to dynamic conservative mode
\n
"
,
opt
.
name
);
adapter
->
itr
=
20000
;
adapter
->
itr
=
20000
;
break
;
case
4
:
e_info
(
"%s set to simplified (2000-8000 ints) mode
\n
"
,
opt
.
name
);
break
;
default:
/*
* Save the setting, because the dynamic bits
* change itr.
*
* Clear the lower two bits because
* they are used as control.
*/
adapter
->
itr_setting
&=
~
3
;
break
;
}
}
}
}
{
/* Interrupt Mode */
{
/* Interrupt Mode */
...
...
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