dc: Add missing ifpoll_compat_setup
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 11 Nov 2012 09:44:04 +0000 (17:44 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 11 Nov 2012 09:44:04 +0000 (17:44 +0800)
sys/dev/netif/dc/if_dc.c

index d7719cf..202ab7c 100644 (file)
@@ -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