Date: Mon, 18 Jul 2016 09:11:21 GMT From: vincenzo@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r306426 - soc2016/vincenzo/head/sys/dev/netmap Message-ID: <201607180911.u6I9BLYT034021@socsvn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201607180911.u6I9BLYT034021>