projects
/
~tnikolova
/
compat
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2cd24d
)
compat: add the ndo_select_queue for netdev_attach_ops()
author
Luis R. Rodriguez
<lrodriguez@atheros.com>
Wed, 5 May 2010 00:32:16 +0000
(17:32 -0700)
committer
Luis 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
patch
|
blob
|
history
diff --git
a/compat/compat-2.6.29.c
b/compat/compat-2.6.29.c
index
8b3da33
..
5ee1e44
100644
(file)
--- 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);