diff options
author | Johannes Berg <johannes.berg@intel.com> | 2015-04-01 17:31:37 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2015-04-03 19:10:30 +0200 |
commit | 68594f72274b37f66d1c08cb57504682476f133a (patch) | |
tree | d8325014e31b9581c1f53f20500b42ff6b0b04b6 /backport/backport-include | |
parent | dcfee56438f4605987792b3145ff539329f345d2 (diff) |
backports: backport NET_NAME_* definitions
These were added upstream a long time ago in commit 685343fc3ba61,
but not needed until implemented in the wireless stack recently.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'backport/backport-include')
-rw-r--r-- | backport/backport-include/linux/netdevice.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/backport/backport-include/linux/netdevice.h b/backport/backport-include/linux/netdevice.h index 27bce84c..abbfe1d4 100644 --- a/backport/backport-include/linux/netdevice.h +++ b/backport/backport-include/linux/netdevice.h @@ -163,6 +163,22 @@ static inline void netdev_reset_queue(struct net_device *dev_queue) #endif #if LINUX_VERSION_CODE < KERNEL_VERSION(3,17,0) +#ifndef NET_NAME_UNKNOWN +#define NET_NAME_UNKNOWN 0 +#endif +#ifndef NET_NAME_ENUM +#define NET_NAME_ENUM 1 +#endif +#ifndef NET_NAME_PREDICTABLE +#define NET_NAME_PREDICTABLE 2 +#endif +#ifndef NET_NAME_USER +#define NET_NAME_USER 3 +#endif +#ifndef NET_NAME_RENAMED +#define NET_NAME_RENAMED 4 +#endif + #define alloc_netdev_mqs(sizeof_priv, name, name_assign_type, setup, txqs, rxqs) \ alloc_netdev_mqs(sizeof_priv, name, setup, txqs, rxqs) |