svn commit: r234169 - head/sys/dev/netmap

Luigi Rizzo luigi at FreeBSD.org
Thu Apr 12 08:54:02 UTC 2012


Author: luigi
Date: Thu Apr 12 08:54:01 2012
New Revision: 234169
URL: http://svn.freebsd.org/changeset/base/234169

Log:
  use correct selinfo pointer for the generic interrupt handler
  (it is never used in current FreeBSD drivers).

Modified:
  head/sys/dev/netmap/netmap.c

Modified: head/sys/dev/netmap/netmap.c
==============================================================================
--- head/sys/dev/netmap/netmap.c	Thu Apr 12 08:38:56 2012	(r234168)
+++ head/sys/dev/netmap/netmap.c	Thu Apr 12 08:54:01 2012	(r234169)
@@ -1667,10 +1667,10 @@ netmap_rx_irq(struct ifnet *ifp, int q, 
 	if (work_done) { /* RX path */
 		r = na->rx_rings + q;
 		r->nr_kflags |= NKR_PENDINTR;
-		main_wq = (na->num_rx_queues > 1) ? &na->tx_si : NULL;
+		main_wq = (na->num_rx_queues > 1) ? &na->rx_si : NULL;
 	} else { /* tx path */
 		r = na->tx_rings + q;
-		main_wq = (na->num_tx_queues > 1) ? &na->rx_si : NULL;
+		main_wq = (na->num_tx_queues > 1) ? &na->tx_si : NULL;
 		work_done = &q; /* dummy */
 	}
 	if (na->separate_locks) {


More information about the svn-src-head mailing list