提交 9f7bd2ff 编写于 作者: N Nick Lowe 提交者: Zheng Zengkai

igb: Enable RSS for Intel I211 Ethernet Controller

stable inclusion
from stable-5.10.35
commit a41c193d004eac7c4daf5166030001d9763a6ebe
bugzilla: 51866
CVE: NA

--------------------------------

commit 6e6026f2 upstream.

The Intel I211 Ethernet Controller supports 2 Receive Side Scaling (RSS)
queues. It should not be excluded from having this feature enabled.

Via commit c883de9f ("igb: rename igb define to be more generic")
E1000_MRQC_ENABLE_RSS_4Q was renamed to E1000_MRQC_ENABLE_RSS_MQ to
indicate that this is a generic bit flag to enable queues and not
a flag that is specific to devices that support 4 queues

The bit flag enables 2, 4 or 8 queues appropriately depending on the part.

Tested with a multicore CPU and frames were then distributed as expected.

This issue appears to have been introduced because of confusion caused
by the prior name.
Signed-off-by: NNick Lowe <nick.lowe@gmail.com>
Tested-by: NDavid Switzer <david.switzer@intel.com>
Signed-off-by: NTony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Acked-by: NWeilong Chen <chenweilong@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 f6719743
...@@ -4482,8 +4482,7 @@ static void igb_setup_mrqc(struct igb_adapter *adapter) ...@@ -4482,8 +4482,7 @@ static void igb_setup_mrqc(struct igb_adapter *adapter)
else else
mrqc |= E1000_MRQC_ENABLE_VMDQ; mrqc |= E1000_MRQC_ENABLE_VMDQ;
} else { } else {
if (hw->mac.type != e1000_i211) mrqc |= E1000_MRQC_ENABLE_RSS_MQ;
mrqc |= E1000_MRQC_ENABLE_RSS_MQ;
} }
igb_vmm_control(adapter); igb_vmm_control(adapter);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册