From bdf8c7203c35118d5d7b00f173ae6963fb496f49 Mon Sep 17 00:00:00 2001 From: "Luis R. Rodriguez" Date: Tue, 4 May 2010 17:32:16 -0700 Subject: [PATCH] compat: add the ndo_select_queue for netdev_attach_ops() Signed-off-by: Luis R. Rodriguez --- compat/compat-2.6.29.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/compat/compat-2.6.29.c b/compat/compat-2.6.29.c index 8b3da3394af2..5ee1e44cd347 100644 --- a/compat/compat-2.6.29.c +++ b/compat/compat-2.6.29.c @@ -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); -- 2.30.2