提交 4dc93fcf 编写于 作者: V Vinicius Costa Gomes 提交者: Jeff Kirsher

igb: Fix queue selection on MAC filters on i210

On the RAH registers there are semantic differences on the meaning of
the "queue" parameter for traffic steering depending on the controller
model: there is the 82575 meaning, which "queue" means a RX Hardware
Queue, and the i350 meaning, where it is a reception pool.

The previous behaviour was having no effect for i210 based controllers
because the QSEL bit of the RAH register wasn't being set.

This patch separates the condition in discrete cases, so the different
handling is clearer.

Fixes: 83c21335 ("igb: improve MAC filter handling")
Signed-off-by: NVinicius Costa Gomes <vinicius.gomes@intel.com>
Tested-by: NAaron Brown <aaron.f.brown@intel.com>
Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
上级 83dd693f
...@@ -8763,12 +8763,17 @@ static void igb_rar_set_index(struct igb_adapter *adapter, u32 index) ...@@ -8763,12 +8763,17 @@ static void igb_rar_set_index(struct igb_adapter *adapter, u32 index)
if (is_valid_ether_addr(addr)) if (is_valid_ether_addr(addr))
rar_high |= E1000_RAH_AV; rar_high |= E1000_RAH_AV;
if (hw->mac.type == e1000_82575) switch (hw->mac.type) {
case e1000_82575:
case e1000_i210:
rar_high |= E1000_RAH_POOL_1 * rar_high |= E1000_RAH_POOL_1 *
adapter->mac_table[index].queue; adapter->mac_table[index].queue;
else break;
default:
rar_high |= E1000_RAH_POOL_1 << rar_high |= E1000_RAH_POOL_1 <<
adapter->mac_table[index].queue; adapter->mac_table[index].queue;
break;
}
} }
wr32(E1000_RAL(index), rar_low); wr32(E1000_RAL(index), rar_low);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册