提交 7d16e65b 编写于 作者: J Jesse Brandeburg 提交者: Jeff Garzik

[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: NJesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: NAuke Kok <auke-jan.h.kok@intel.com>
Signed-off-by: NArjan van de Ven <arjan@linux.intel.com>
Signed-off-by: NJeff Garzik <jeff@garzik.org>
上级 3bf8ba38
...@@ -487,7 +487,9 @@ e1000_check_options(struct e1000_adapter *adapter) ...@@ -487,7 +487,9 @@ e1000_check_options(struct e1000_adapter *adapter)
e1000_validate_option(&adapter->itr, &opt, e1000_validate_option(&adapter->itr, &opt,
adapter); adapter);
/* save the setting, because the dynamic bits change itr */ /* 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; break;
} }
} else { } else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册