net: add skb_get_tx_queue() helper
Replace occurences of skb_get_queue_mapping() and follow-up netdev_get_tx_queue() with an actual helper function. Signed-off-by: Daniel Borkmann <dborkman@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
a3bf5c429e
commit
10c51b5623
@@ -243,7 +243,6 @@ static int packet_direct_xmit(struct sk_buff *skb)
|
||||
netdev_features_t features;
|
||||
struct netdev_queue *txq;
|
||||
int ret = NETDEV_TX_BUSY;
|
||||
u16 queue_map;
|
||||
|
||||
if (unlikely(!netif_running(dev) ||
|
||||
!netif_carrier_ok(dev)))
|
||||
@@ -254,8 +253,7 @@ static int packet_direct_xmit(struct sk_buff *skb)
|
||||
__skb_linearize(skb))
|
||||
goto drop;
|
||||
|
||||
queue_map = skb_get_queue_mapping(skb);
|
||||
txq = netdev_get_tx_queue(dev, queue_map);
|
||||
txq = skb_get_tx_queue(dev, skb);
|
||||
|
||||
local_bh_disable();
|
||||
|
||||
|
Reference in New Issue
Block a user