aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/e1000e/param.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/e1000e/param.c')
-rw-r--r--drivers/net/e1000e/param.c23
1 files changed, 19 insertions, 4 deletions
diff --git a/drivers/net/e1000e/param.c b/drivers/net/e1000e/param.c
index 8effc3107f9a..b0499f27e5ff 100644
--- a/drivers/net/e1000e/param.c
+++ b/drivers/net/e1000e/param.c
@@ -327,11 +327,26 @@ void __devinit e1000e_check_options(struct e1000_adapter *adapter)
327 e1000_validate_option(&adapter->itr, &opt, 327 e1000_validate_option(&adapter->itr, &opt,
328 adapter); 328 adapter);
329 /* 329 /*
330 * save the setting, because the dynamic bits 330 * Save the setting, because the dynamic bits
331 * change itr. clear the lower two bits 331 * change itr.
332 * because they are used as control
333 */ 332 */
334 adapter->itr_setting = adapter->itr & ~3; 333 if (e1000_validate_option(&adapter->itr, &opt,
334 adapter) &&
335 (adapter->itr == 3)) {
336 /*
337 * In case of invalid user value,
338 * default to conservative mode.
339 */
340 adapter->itr_setting = adapter->itr;
341 adapter->itr = 20000;
342 } else {
343 /*
344 * Clear the lower two bits because
345 * they are used as control.
346 */
347 adapter->itr_setting =
348 adapter->itr & ~3;
349 }
335 break; 350 break;
336 } 351 }
337 } else { 352 } else {