benet: use skb_vlan_tag_get_prio()
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Tue, 20 Nov 2018 12:20:32 +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/emulex/benet/be_main.c

index 80b2bd3747ce533de85c699232aef4813dc58f8b..245abf0d19c0016df7f651844f1f02fffa343458 100644 (file)
@@ -796,7 +796,7 @@ static inline u16 be_get_tx_vlan_tag(struct be_adapter *adapter,
        u16 vlan_tag;
 
        vlan_tag = skb_vlan_tag_get(skb);
-       vlan_prio = (vlan_tag & VLAN_PRIO_MASK) >> VLAN_PRIO_SHIFT;
+       vlan_prio = skb_vlan_tag_get_prio(skb);
        /* If vlan priority provided by OS is NOT in available bmap */
        if (!(adapter->vlan_prio_bmap & (1 << vlan_prio)))
                vlan_tag = (vlan_tag & ~VLAN_PRIO_MASK) |