From: Tonghao Zhang Date: Thu, 22 Aug 2019 10:56:46 +0000 (+0800) Subject: ixgbe: use skb_get_queue_mapping in tx path X-Git-Tag: v5.4-rc1~131^2~25^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fb91a8bb73ec91e86806b82f474221d3888d6eb7;p=platform%2Fkernel%2Flinux-rpi.git ixgbe: use skb_get_queue_mapping in tx path Use the common api, and don't access queue_mapping directly. Signed-off-by: Tonghao Zhang Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c index 95c0827..dc034f4 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c @@ -8748,7 +8748,7 @@ static netdev_tx_t __ixgbe_xmit_frame(struct sk_buff *skb, if (skb_put_padto(skb, 17)) return NETDEV_TX_OK; - tx_ring = ring ? ring : adapter->tx_ring[skb->queue_mapping]; + tx_ring = ring ? ring : adapter->tx_ring[skb_get_queue_mapping(skb)]; if (unlikely(test_bit(__IXGBE_TX_DISABLED, &tx_ring->state))) return NETDEV_TX_BUSY;