aboutsummaryrefslogtreecommitdiffstats
path: root/net/8021q/vlan.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/8021q/vlan.h')
-rw-r--r--net/8021q/vlan.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/net/8021q/vlan.h b/net/8021q/vlan.h
index 097b2e04c928..7cc1a97c42fc 100644
--- a/net/8021q/vlan.h
+++ b/net/8021q/vlan.h
@@ -37,6 +37,14 @@ void vlan_setup(struct net_device *dev);
37int register_vlan_dev(struct net_device *dev); 37int register_vlan_dev(struct net_device *dev);
38void unregister_vlan_dev(struct net_device *dev); 38void unregister_vlan_dev(struct net_device *dev);
39 39
40static inline u32 vlan_get_ingress_priority(struct net_device *dev,
41 unsigned short vlan_tag)
42{
43 struct vlan_dev_info *vip = vlan_dev_info(dev);
44
45 return vip->ingress_priority_map[(vlan_tag >> 13) & 0x7];
46}
47
40#ifdef CONFIG_VLAN_8021Q_GVRP 48#ifdef CONFIG_VLAN_8021Q_GVRP
41extern int vlan_gvrp_request_join(const struct net_device *dev); 49extern int vlan_gvrp_request_join(const struct net_device *dev);
42extern void vlan_gvrp_request_leave(const struct net_device *dev); 50extern void vlan_gvrp_request_leave(const struct net_device *dev);