Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jul 2016 09:11:12 GMT
From:      vincenzo@FreeBSD.org
To:        svn-soc-all@FreeBSD.org
Subject:   socsvn commit: r306425 - soc2016/vincenzo/head/sys/dev/netmap
Message-ID:  <201607180911.u6I9BCRY027913@socsvn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: vincenzo
Date: Mon Jul 18 09:11:12 2016
New Revision: 306425
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=306425

Log:
   freebsd: ptnet_transmit: don't drain queue in POLLING mode

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 Jul 18 09:09:57 2016	(r306424)
+++ soc2016/vincenzo/head/sys/dev/netmap/if_ptnet.c	Mon Jul 18 09:11:12 2016	(r306425)
@@ -1921,6 +1921,12 @@
 		return err;
 	}
 
+	if (ifp->if_capenable & IFCAP_POLLING) {
+		/* If polling is on, the transmit queues will be
+		 * drained by the poller. */
+		return 0;
+	}
+
 	err = ptnet_drain_transmit_queue(pq, PTNET_TX_BUDGET, true);
 
 	return (err < 0) ? err : 0;



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