compat: Added macros and headers to support for RHEL7.2
[~tnikolova/compat/.git] / include / linux / if_vlan.h
1 #ifndef LINUX_IF_VLAN_H
2 #define LINUX_IF_VLAN_H
3
4 #include_next <linux/if_vlan.h>
5
6 #ifndef vlan_tx_tag_present
7 #define vlan_tx_tag_present skb_vlan_tag_present
8 #define vlan_tx_tag_get skb_vlan_tag_get
9 #define vlan_tx_tag_get_id skb_vlan_tag_get_id
10 #endif
11
12 #ifndef HAVE_IS_VLAN_DEV
13 static inline int is_vlan_dev(struct net_device *dev)
14 {
15         return dev->priv_flags & IFF_802_1Q_VLAN;
16 }
17 #endif
18
19 #endif /* LINUX_IF_VLAN_H */