]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ixgbe: DCB 82598 devices, tx_idx and rx_idx swapped
authorJohn Fastabend <john.r.fastabend@intel.com>
Tue, 26 Apr 2011 07:26:14 +0000 (07:26 +0000)
committerJoe Jin <joe.jin@oracle.com>
Thu, 2 Feb 2012 13:19:14 +0000 (21:19 +0800)
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>
(cherry picked from commit aba70d5e6c1c188fe45c1a782060440b6c2ea759)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/ixgbe/ixgbe_main.c

index 04f56fbb693e72288aabf815e556ef3b27706b2b..fde8394e5aacab44da88f181bf5404eba72a488e 100644 (file)
@@ -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: