socsvn commit: r305050 - soc2016/vincenzo/head/sys/dev/netmap

vincenzo at FreeBSD.org vincenzo at FreeBSD.org
Fri Jun 10 13:16:19 UTC 2016


Author: vincenzo
Date: Fri Jun 10 13:16:18 2016
New Revision: 305050
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=305050

Log:
   freebsd: ptnet_irqs_init: use the right handler for RX interrupts

Modified:
  soc2016/vincenzo/head/sys/dev/netmap/if_ptnet.c

Modified: soc2016/vincenzo/head/sys/dev/netmap/if_ptnet.c
==============================================================================
--- soc2016/vincenzo/head/sys/dev/netmap/if_ptnet.c	Fri Jun 10 13:15:59 2016	(r305049)
+++ soc2016/vincenzo/head/sys/dev/netmap/if_ptnet.c	Fri Jun 10 13:16:18 2016	(r305050)
@@ -522,7 +522,7 @@
 		struct ptnet_queue *pq = sc->queues + i;
 		void (*handler)(void *) = ptnet_tx_intr;
 
-		if (i > num_tx_rings) {
+		if (i >= num_tx_rings) {
 			handler = ptnet_rx_intr;
 		}
 		err = bus_setup_intr(dev, pq->irq, INTR_TYPE_NET | INTR_MPSAFE,


More information about the svn-soc-all mailing list