From: John Fastabend Date: Tue, 26 Apr 2011 07:26:14 +0000 (+0000) Subject: ixgbe: DCB 82598 devices, tx_idx and rx_idx swapped X-Git-Tag: v2.6.39-400.9.0~619^2~39 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=43784c4a8332773df2b81f5b16c1743c0ccf84b6;p=users%2Fjedix%2Flinux-maple.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 Tested-by: Ross Brattain Signed-off-by: Jeff Kirsher (cherry picked from commit aba70d5e6c1c188fe45c1a782060440b6c2ea759) Signed-off-by: Joe Jin --- diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c index 04f56fbb693e7..fde8394e5aaca 100644 --- a/drivers/net/ixgbe/ixgbe_main.c +++ b/drivers/net/ixgbe/ixgbe_main.c @@ -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: