datapath: compat: Fix compilation for 2.6.32 kernel
authorPravin B Shelar <pshelar@nicira.com>
Sun, 21 Sep 2014 18:41:28 +0000 (11:41 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Sun, 21 Sep 2014 18:52:10 +0000 (11:52 -0700)
Define alloc_netdev() using alloc_netdev_mq() which is available on all
kernel supported by OVS.

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
datapath/linux/compat/include/linux/netdevice.h

index 679c861..43a04a4 100644 (file)
@@ -30,7 +30,7 @@ struct net;
 #undef alloc_netdev
 #define NET_NAME_UNKNOWN 0
 #define alloc_netdev(sizeof_priv, name, name_assign_type, setup) \
-        alloc_netdev_mqs(sizeof_priv, name, setup, 1, 1)
+        alloc_netdev_mq(sizeof_priv, name, setup, 1)
 #endif
 
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33)