Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Jun 2016 13:16:19 GMT
From:      vincenzo@FreeBSD.org
To:        svn-soc-all@FreeBSD.org
Subject:   socsvn commit: r305050 - soc2016/vincenzo/head/sys/dev/netmap
Message-ID:  <201606101316.u5ADGJnb012895@socsvn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606101316.u5ADGJnb012895>