mirror of https://gitee.com/openkylin/linux.git
ixgbe: DCB 82598 devices, tx_idx and rx_idx swapped
The tx_idx and rx_idx values are swapped on 82598 devices with DCB enabled. Signed-off-by: John Fastabend <john.r.fastabend@intel.com> Tested-by: Ross Brattain <ross.b.brattain@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
e901acd6fa
commit
aba70d5e6c
|
@ -4636,8 +4636,8 @@ static void ixgbe_get_first_reg_idx(struct ixgbe_adapter *adapter, u8 tc,
|
||||||
|
|
||||||
switch (hw->mac.type) {
|
switch (hw->mac.type) {
|
||||||
case ixgbe_mac_82598EB:
|
case ixgbe_mac_82598EB:
|
||||||
*tx = tc << 3;
|
*tx = tc << 2;
|
||||||
*rx = tc << 2;
|
*rx = tc << 3;
|
||||||
break;
|
break;
|
||||||
case ixgbe_mac_82599EB:
|
case ixgbe_mac_82599EB:
|
||||||
case ixgbe_mac_X540:
|
case ixgbe_mac_X540:
|
||||||
|
|
Loading…
Reference in New Issue