mirror of
https://github.com/torvalds/linux.git
synced 2024-12-29 14:21:47 +00:00
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 <xiangxia.m.yue@gmail.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
a7542b8760
commit
fb91a8bb73
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user