Merge tag 'mt76-for-kvalo-2021-01-29' of https://github.com/nbd168/wireless
[linux-2.6-microblaze.git] / net / bridge / br_forward.c
index e28ffad..6e9b049 100644 (file)
@@ -39,8 +39,7 @@ int br_dev_queue_push_xmit(struct net *net, struct sock *sk, struct sk_buff *skb
        br_drop_fake_rtable(skb);
 
        if (skb->ip_summed == CHECKSUM_PARTIAL &&
-           (skb->protocol == htons(ETH_P_8021Q) ||
-            skb->protocol == htons(ETH_P_8021AD))) {
+           eth_type_vlan(skb->protocol)) {
                int depth;
 
                if (!__vlan_get_protocol(skb, skb->protocol, &depth))