diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2014-05-31 16:11:24 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2014-06-18 21:43:45 +0200 |
commit | eaa7ac4d5c98068a1fc0152284b7faed544bfa2e (patch) | |
tree | ce51ad16e99dbb6b088e54d8020a98996e949015 | |
parent | c58f17a5ebadcc75598e8089c72f39b2f24f0bde (diff) |
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 <hauke@hauke-m.de>
-rw-r--r-- | backport/backport-include/linux/if.h | 27 | ||||
-rw-r--r-- | backport/backport-include/linux/netdevice.h | 12 |
2 files changed, 12 insertions, 27 deletions
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 <linux/if.h> -#include <linux/version.h> - -/* 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 */ |