Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aba70d5e authored by John Fastabend's avatar John Fastabend Committed by Jeff Kirsher
Browse files

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: default avatarJohn Fastabend <john.r.fastabend@intel.com>
Tested-by: default avatarRoss Brattain <ross.b.brattain@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent e901acd6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4636,8 +4636,8 @@ static void ixgbe_get_first_reg_idx(struct ixgbe_adapter *adapter, u8 tc,

	switch (hw->mac.type) {
	case ixgbe_mac_82598EB:
		*tx = tc << 3;
		*rx = tc << 2;
		*tx = tc << 2;
		*rx = tc << 3;
		break;
	case ixgbe_mac_82599EB:
	case ixgbe_mac_X540: