提交 2e7d21c5 编写于 作者: J Jeff Kirsher 提交者: David S. Miller

e1000e: Fix merge conflict (net->net-next)

During merge of net to net-next the changes in patch:

e1000e: Fix default interrupt throttle rate not set in NIC HW

got munged in param.c of the e1000e driver.  This rectifies the
merge issues.
Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 9bb862be
...@@ -344,50 +344,16 @@ void __devinit e1000e_check_options(struct e1000_adapter *adapter) ...@@ -344,50 +344,16 @@ 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);
break;
case 1:
e_info("%s set to dynamic mode\n", opt.name);
adapter->itr_setting = adapter->itr;
adapter->itr = 20000;
break;
case 3:
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 * Make sure a message is printed for non-special
* they are used as control. * values. And in case of an invalid option, display
* warning, use default and go through itr/itr_setting
* adjustment logic below
*/ */
adapter->itr_setting = if ((adapter->itr > 4) &&
adapter->itr & ~3; e1000_validate_option(&adapter->itr, &opt, adapter))
} adapter->itr = opt.def;
break;
}
} else { } else {
/* /*
* If no option specified, use default value and go * If no option specified, use default value and go
...@@ -399,7 +365,7 @@ void __devinit e1000e_check_options(struct e1000_adapter *adapter) ...@@ -399,7 +365,7 @@ void __devinit e1000e_check_options(struct e1000_adapter *adapter)
* Make sure a message is printed for non-special * Make sure a message is printed for non-special
* default values * default values
*/ */
if (adapter->itr > 40) if (adapter->itr > 4)
e_info("%s set to default %d\n", opt.name, e_info("%s set to default %d\n", opt.name,
adapter->itr); adapter->itr);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册