svn commit: r240976 - stable/9/sys/dev/netmap
Ed Maste
emaste at FreeBSD.org
Wed Sep 26 22:13:04 UTC 2012
Author: emaste
Date: Wed Sep 26 22:13:03 2012
New Revision: 240976
URL: http://svn.freebsd.org/changeset/base/240976
Log:
MFC part of r239149:
Comment out the knlist_destroy for now as there is currently no
knlist_init.
Modified:
stable/9/sys/dev/netmap/netmap.c
Modified: stable/9/sys/dev/netmap/netmap.c
==============================================================================
--- stable/9/sys/dev/netmap/netmap.c Wed Sep 26 21:55:13 2012 (r240975)
+++ stable/9/sys/dev/netmap/netmap.c Wed Sep 26 22:13:03 2012 (r240976)
@@ -1033,16 +1033,17 @@ netmap_detach(struct ifnet *ifp)
return;
for (i = 0; i < na->num_tx_rings + 1; i++) {
- knlist_destroy(&na->tx_rings[i].si.si_note);
+ /* knlist_destroy(&na->tx_rings[i].si.si_note); */
mtx_destroy(&na->tx_rings[i].q_lock);
}
for (i = 0; i < na->num_rx_rings + 1; i++) {
- knlist_destroy(&na->rx_rings[i].si.si_note);
+ /* knlist_destroy(&na->rx_rings[i].si.si_note); */
mtx_destroy(&na->rx_rings[i].q_lock);
}
mtx_destroy(&na->core_lock);
- knlist_destroy(&na->tx_si.si_note);
- knlist_destroy(&na->rx_si.si_note);
+ /* XXX kqueue(9) needed; these will mirror knlist_init. */
+ /* knlist_destroy(&na->tx_si.si_note); */
+ /* knlist_destroy(&na->rx_si.si_note); */
bzero(na, sizeof(*na));
WNA(ifp) = NULL;
free(na, M_DEVBUF);
More information about the svn-src-stable-9
mailing list