From: Johannes Berg <johannes.b...@intel.com>

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.b...@intel.com>
---
 backport/backport-include/linux/netdevice.h | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/backport/backport-include/linux/netdevice.h 
b/backport/backport-include/linux/netdevice.h
index 27bce84c468a..abbfe1d43b7e 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)
 
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to