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

vincenzo at FreeBSD.org vincenzo at FreeBSD.org
Mon Jul 18 09:11:22 UTC 2016


Author: vincenzo
Date: Mon Jul 18 09:11:21 2016
New Revision: 306426
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=306426

Log:
   freebsd: ptnet_poll: fix queue budget computation

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:11:12 2016	(r306425)
+++ soc2016/vincenzo/head/sys/dev/netmap/if_ptnet.c	Mon Jul 18 09:11:21 2016	(r306426)
@@ -2237,7 +2237,7 @@
 	int i;
 
 	KASSERT(sc->num_rings > 0, "Found no queues in while polling ptnet");
-	queue_budget = MIN(budget / sc->num_rings, 1);
+	queue_budget = MAX(budget / sc->num_rings, 1);
 	RD(1, "Per-queue budget is %d", queue_budget);
 
 	while (budget) {


More information about the svn-soc-all mailing list