From: Michał Mirosław Date: Tue, 20 Nov 2018 12:20:32 +0000 (+0100) Subject: benet: use skb_vlan_tag_get_prio() X-Git-Tag: v5.4-rc1~1957^2~238^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fb1e3df0023051a1be6f857eea80e7476ebb20ac;p=platform%2Fkernel%2Flinux-rpi.git benet: use skb_vlan_tag_get_prio() Signed-off-by: Michał Mirosław Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/emulex/benet/be_main.c b/drivers/net/ethernet/emulex/benet/be_main.c index 80b2bd3747ce..245abf0d19c0 100644 --- a/drivers/net/ethernet/emulex/benet/be_main.c +++ b/drivers/net/ethernet/emulex/benet/be_main.c @@ -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) |