]> git.karo-electronics.de Git - linux-beck.git/blobdiff - drivers/net/ixgbe/ixgbe_main.c
ixgbe: Update ATR to use recorded TX queues instead of CPU for routing
[linux-beck.git] / drivers / net / ixgbe / ixgbe_main.c
index de307965dfeea1f6dd768d2a31e79985c2ba0526..f05ddf31a19fc2b6a5e464eea441f0dc52c63caa 100644 (file)
@@ -6795,11 +6795,10 @@ static int ixgbe_maybe_stop_tx(struct ixgbe_ring *tx_ring, u16 size)
 static u16 ixgbe_select_queue(struct net_device *dev, struct sk_buff *skb)
 {
        struct ixgbe_adapter *adapter = netdev_priv(dev);
-       int txq = smp_processor_id();
+       int txq = skb_rx_queue_recorded(skb) ? skb_get_rx_queue(skb) :
+                                              smp_processor_id();
 #ifdef IXGBE_FCOE
-       __be16 protocol;
-
-       protocol = vlan_get_protocol(skb);
+       __be16 protocol = vlan_get_protocol(skb);
 
        if (((protocol == htons(ETH_P_FCOE)) ||
            (protocol == htons(ETH_P_FIP))) &&