compat: add the ndo_select_queue for netdev_attach_ops()
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Wed, 5 May 2010 00:32:16 +0000 (17:32 -0700)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Wed, 5 May 2010 00:32:16 +0000 (17:32 -0700)
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
compat/compat-2.6.29.c

index 8b3da33..5ee1e44 100644 (file)
@@ -43,6 +43,11 @@ void netdev_attach_ops(struct net_device *dev,
 #ifdef CONFIG_NET_POLL_CONTROLLER
        dev->poll_controller = SET_NETDEVOP(ops->ndo_poll_controller);
 #endif
+
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27))
+       dev->select_queue = SET_NETDEVOP(ops->ndo_select_queue);
+#endif
+
 #undef SET_NETDEVOP
 }
 EXPORT_SYMBOL(netdev_attach_ops);