Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Jun 2016 09:34:58 GMT
From:      vincenzo@FreeBSD.org
To:        svn-soc-all@FreeBSD.org
Subject:   socsvn commit: r305581 - soc2016/vincenzo/head/sys/dev/netmap
Message-ID:  <201606270934.u5R9YwFb028932@socsvn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: vincenzo
Date: Mon Jun 27 09:34:58 2016
New Revision: 305581
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=305581

Log:
   freebsd: ptnet_tx_intr: schedule taskqueue to process transmissions

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	Mon Jun 27 09:34:49 2016	(r305580)
+++ soc2016/vincenzo/head/sys/dev/netmap/if_ptnet.c	Mon Jun 27 09:34:58 2016	(r305581)
@@ -1276,7 +1276,6 @@
 {
 	struct ptnet_queue *pq = opaque;
 	struct ptnet_softc *sc = pq->sc;
-	struct netmap_adapter *na_dr = &sc->ptna_dr.hwup.up;
 
 	DBG(device_printf(sc->dev, "Tx interrupt #%d\n", pq->kring_id));
 
@@ -1288,9 +1287,8 @@
 		return;
 	}
 
-	PTNET_Q_LOCK(pq);
-	ptnet_sync_tail(pq->ptring, na_dr->tx_rings + pq->kring_id);
-	PTNET_Q_UNLOCK(pq);
+	/* Schedule the tasqueue to flush process transmissions requests. */
+	taskqueue_enqueue(pq->taskq, &pq->task);
 }
 
 static void



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