projects
/
dragonfly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
f2542cf
)
dc: Add missing ifpoll_compat_setup
author
Sepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 11 Nov 2012 09:44:04 +0000 (17:44 +0800)
committer
Sepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 11 Nov 2012 09:44:04 +0000 (17:44 +0800)
sys/dev/netif/dc/if_dc.c
patch
|
blob
|
blame
|
history
diff --git
a/sys/dev/netif/dc/if_dc.c
b/sys/dev/netif/dc/if_dc.c
index
d7719cf
..
202ab7c
100644
(file)
--- a/
sys/dev/netif/dc/if_dc.c
+++ b/
sys/dev/netif/dc/if_dc.c
@@
-2166,6
+2166,11
@@
dc_attach(device_t dev)
*/
ether_ifattach(ifp, eaddr, NULL);
+#ifdef IFPOLL_ENABLE
+ ifpoll_compat_setup(&sc->dc_npoll, NULL, NULL, device_get_unit(dev),
+ ifp->if_serializer);
+#endif
+
if (DC_IS_ADMTEK(sc)) {
/*
* Set automatic TX underrun recovery for the ADMtek chips