From eaa7ac4d5c98068a1fc0152284b7faed544bfa2e Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sat, 31 May 2014 16:11:24 +0200 Subject: backports: move net_device_priv_flags Upstream commit: 4d1a1850cfb8918fbf190071d1f1f1383814538e These flags are now defined in linux/netdevice.h and not in linux/if.h any more. This patch also removed some defined in all kernel versions since 3.0. Signed-off-by: Hauke Mehrtens --- backport/backport-include/linux/if.h | 27 --------------------------- backport/backport-include/linux/netdevice.h | 12 ++++++++++++ 2 files changed, 12 insertions(+), 27 deletions(-) delete mode 100644 backport/backport-include/linux/if.h diff --git a/backport/backport-include/linux/if.h b/backport/backport-include/linux/if.h deleted file mode 100644 index 1045466e..00000000 --- a/backport/backport-include/linux/if.h +++ /dev/null @@ -1,27 +0,0 @@ -#ifndef _BACKPORT_LINUX_IF_H -#define _BACKPORT_LINUX_IF_H -#include_next -#include - -/* mask IFF_DONT_BRIDGE as RHEL6 backports this */ -#if !defined(IFF_DONT_BRIDGE) -#define IFF_DONT_BRIDGE 0x800 /* disallow bridging this ether dev */ -#endif - -#ifndef IFF_TX_SKB_SHARING -#define IFF_TX_SKB_SHARING 0x10000 -#endif - -#ifndef IFF_LIVE_ADDR_CHANGE -#define IFF_LIVE_ADDR_CHANGE 0x100000 -#endif - -#ifndef IFF_SUPP_NOFCS -#define IFF_SUPP_NOFCS 0x80000 /* device supports sending custom FCS */ -#endif - -#ifndef IFF_UNICAST_FLT -#define IFF_UNICAST_FLT 0x20000 /* Supports unicast filtering */ -#endif - -#endif /* _BACKPORT_LINUX_IF_H */ diff --git a/backport/backport-include/linux/netdevice.h b/backport/backport-include/linux/netdevice.h index 04b310db..e8560730 100644 --- a/backport/backport-include/linux/netdevice.h +++ b/backport/backport-include/linux/netdevice.h @@ -156,4 +156,16 @@ static inline void netdev_reset_queue(struct net_device *dev_queue) #define napi_gro_flush(napi, old) napi_gro_flush(napi) #endif +#ifndef IFF_LIVE_ADDR_CHANGE +#define IFF_LIVE_ADDR_CHANGE 0x100000 +#endif + +#ifndef IFF_SUPP_NOFCS +#define IFF_SUPP_NOFCS 0x80000 /* device supports sending custom FCS */ +#endif + +#ifndef IFF_UNICAST_FLT +#define IFF_UNICAST_FLT 0x20000 /* Supports unicast filtering */ +#endif + #endif /* __BACKPORT_NETDEVICE_H */ -- cgit v1.2.3