From 3738b70a5292d3bebfe93ff849eba9a8c9579164 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sat, 26 Oct 2013 00:26:47 +0200 Subject: [PATCH] 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 --- backport/backport-include/linux/if_vlan.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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_ */ -- 2.30.2