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

vincenzo at FreeBSD.org vincenzo at FreeBSD.org
Tue May 31 10:27:22 UTC 2016


Author: vincenzo
Date: Tue May 31 10:27:20 2016
New Revision: 304245
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=304245

Log:
   freebsd: ptnet: be verbose on interrupt

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	Tue May 31 10:26:41 2016	(r304244)
+++ soc2016/vincenzo/head/sys/dev/netmap/if_ptnet.c	Tue May 31 10:27:20 2016	(r304245)
@@ -437,7 +437,8 @@
 		}
 
 		err = bus_setup_intr(dev, pq->irq, INTR_TYPE_NET | INTR_MPSAFE,
-				     NULL, handler, pq, &pq->cookie);
+				     NULL /* intr_filter */, handler,
+				     pq, &pq->cookie);
 		if (err) {
 			device_printf(dev, "Failed to register intr handler "
 					   "for queue #%d\n", i);
@@ -529,9 +530,17 @@
 static void
 ptnet_tx_intr(void *opaque)
 {
+	struct ptnet_queue *pq = opaque;
+	struct ptnet_softc *sc = pq->sc;
+
+	device_printf(sc->dev, "Tx interrupt #%d", pq->kring_id);
 }
 
 static void
 ptnet_rx_intr(void *opaque)
 {
+	struct ptnet_queue *pq = opaque;
+	struct ptnet_softc *sc = pq->sc;
+
+	device_printf(sc->dev, "Rx interrupt #%d", pq->kring_id);
 }


More information about the svn-soc-all mailing list