socsvn commit: r306425 - soc2016/vincenzo/head/sys/dev/netmap
vincenzo at FreeBSD.org
vincenzo at FreeBSD.org
Mon Jul 18 09:11:13 UTC 2016
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;
More information about the svn-soc-all
mailing list