From: Hauke Mehrtens Date: Fri, 25 Oct 2013 22:26:47 +0000 (+0200) Subject: backports: add VLAN_PRIO_MASK and VLAN_PRIO_SHIFT X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=3738b70a5292d3bebfe93ff849eba9a8c9579164;p=openwrt%2Fstaging%2Fblogic.git backports: add VLAN_PRIO_MASK and VLAN_PRIO_SHIFT It should be safe to add them for older kernel versions, there these values were hard coded in other places. This was added in linux-2.6.33. Signed-off-by: Hauke Mehrtens --- diff --git a/backport/backport-include/linux/if_vlan.h b/backport/backport-include/linux/if_vlan.h index fea0accc834f..2d996fa16044 100644 --- a/backport/backport-include/linux/if_vlan.h +++ b/backport/backport-include/linux/if_vlan.h @@ -17,4 +17,12 @@ static inline bool vlan_hw_offload_capable(netdev_features_t features, } #endif +#ifndef VLAN_PRIO_MASK +#define VLAN_PRIO_MASK 0xe000 /* Priority Code Point */ +#endif + +#ifndef VLAN_PRIO_SHIFT +#define VLAN_PRIO_SHIFT 13 +#endif + #endif /* __BACKPORT_LINUX_IF_VLAN_H_ */