mlx5: use skb_vlan_tag_get_prio()
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Tue, 20 Nov 2018 12:20:33 +0000 (13:20 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Nov 2018 23:41:30 +0000 (15:41 -0800)
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_tx.c

index 6dacaeba2fbff85e5091a1151f7ee731e70cf0cd..9afdf955f2bc3cf9f60cc8c5db1b8c4cb2d6b5f6 100644 (file)
@@ -127,7 +127,7 @@ u16 mlx5e_select_queue(struct net_device *dev, struct sk_buff *skb,
        else
 #endif
                if (skb_vlan_tag_present(skb))
-                       up = skb->vlan_tci >> VLAN_PRIO_SHIFT;
+                       up = skb_vlan_tag_get_prio(skb);
 
        /* channel_ix can be larger than num_channels since
         * dev->num_real_tx_queues = num_channels * num_tc