]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - net/8021q/vlan.h
vlan: allow null VLAN ID to be used
[karo-tx-linux.git] / net / 8021q / vlan.h
index 82570bc2a18034058dfba13d0ab9765f63ae3d32..4ade5edf10339483a908ee73ca7e2897d66df18a 100644 (file)
@@ -89,7 +89,7 @@ static inline u32 vlan_get_ingress_priority(struct net_device *dev,
 {
        struct vlan_dev_info *vip = vlan_dev_info(dev);
 
-       return vip->ingress_priority_map[(vlan_tci >> 13) & 0x7];
+       return vip->ingress_priority_map[(vlan_tci >> VLAN_PRIO_SHIFT) & 0x7];
 }
 
 #ifdef CONFIG_VLAN_8021Q_GVRP