Date: Wed, 26 Sep 2012 22:13:03 +0000 (UTC) From: Ed Maste <emaste@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r240976 - stable/9/sys/dev/netmap Message-ID: <201209262213.q8QMD3WI001710@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209262213.q8QMD3WI001710>