svn commit: r184885 - user/kmacy/HEAD_fast_multi_xmit/sys/dev/cxgb
Kip Macy
kmacy at FreeBSD.org
Wed Nov 12 06:45:51 PST 2008
Author: kmacy
Date: Wed Nov 12 14:45:51 2008
New Revision: 184885
URL: http://svn.freebsd.org/changeset/base/184885
Log:
initialize if_transmit after attach
Modified:
user/kmacy/HEAD_fast_multi_xmit/sys/dev/cxgb/cxgb_main.c
Modified: user/kmacy/HEAD_fast_multi_xmit/sys/dev/cxgb/cxgb_main.c
==============================================================================
--- user/kmacy/HEAD_fast_multi_xmit/sys/dev/cxgb/cxgb_main.c Wed Nov 12 14:29:24 2008 (r184884)
+++ user/kmacy/HEAD_fast_multi_xmit/sys/dev/cxgb/cxgb_main.c Wed Nov 12 14:45:51 2008 (r184885)
@@ -930,9 +930,6 @@ cxgb_port_attach(device_t dev)
ifp->if_start = cxgb_start;
-#ifdef IFNET_MULTIQUEUE
- ifp->if_transmit = cxgb_pcpu_transmit;
-#endif
ifp->if_timer = 0; /* Disable ifnet watchdog */
ifp->if_watchdog = NULL;
@@ -954,6 +951,8 @@ cxgb_port_attach(device_t dev)
}
ether_ifattach(ifp, p->hw_addr);
+
+ ifp->if_transmit = cxgb_pcpu_transmit;
/*
* Only default to jumbo frames on 10GigE
*/
More information about the svn-src-user
mailing list