diff options
Diffstat (limited to 'net/8021q/vlan.h')
-rw-r--r-- | net/8021q/vlan.h | 8 |
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); | |||
37 | int register_vlan_dev(struct net_device *dev); | 37 | int register_vlan_dev(struct net_device *dev); |
38 | void unregister_vlan_dev(struct net_device *dev); | 38 | void unregister_vlan_dev(struct net_device *dev); |
39 | 39 | ||
40 | static 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 |
41 | extern int vlan_gvrp_request_join(const struct net_device *dev); | 49 | extern int vlan_gvrp_request_join(const struct net_device *dev); |
42 | extern void vlan_gvrp_request_leave(const struct net_device *dev); | 50 | extern void vlan_gvrp_request_leave(const struct net_device *dev); |