mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[PATCH] e1000: The user-supplied itr setting needs the lower 2 bits masked off
The lower 2 bits of a user-supplied itr setting (via ethtool) need to be masked off: These lower two bits are used as control bits. Signed-off-by: Jesse Brandeburg <[email protected]> Signed-off-by: Auke Kok <[email protected]> Signed-off-by: Arjan van de Ven <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
This commit is contained in:
parent
3bf8ba38f3
commit
7d16e65ba5
1 changed files with 3 additions and 1 deletions
|
|
@ -487,7 +487,9 @@ e1000_check_options(struct e1000_adapter *adapter)
|
|||
e1000_validate_option(&adapter->itr, &opt,
|
||||
adapter);
|
||||
/* save the setting, because the dynamic bits change itr */
|
||||
adapter->itr_setting = adapter->itr;
|
||||
/* clear the lower two bits because they are
|
||||
* used as control */
|
||||
adapter->itr_setting = adapter->itr & ~3;
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue