Lines Matching refs:budget
192 unsigned int budget,
220 static int ptnet_rx_eof(struct ptnet_queue *pq, unsigned int budget,
1370 ptnet_drain_transmit_queue(struct ptnet_queue *pq, unsigned int budget,
1416 while (count < budget) {
1555 if (count >= budget && may_resched) {
1556 DBG(nm_prlim(1, "out of budget: resched, %d mbufs pending\n",
1671 ptnet_rx_eof(struct ptnet_queue *pq, unsigned int budget, bool may_resched)
1695 while (count < budget) {
1891 if (count >= budget && may_resched) {
1892 /* If we ran out of budget or the double-check found new
1894 DBG(nm_prlim(1, "out of budget: resched h %u t %u\n",
1926 ptnet_poll(if_t ifp, enum poll_cmd cmd, int budget)
1935 queue_budget = MAX(budget / sc->num_rings, 1);
1936 nm_prlim(1, "Per-queue budget is %d", queue_budget);
1938 while (budget) {
1945 queue_budget = MIN(queue_budget, budget);
1966 if (rcnt > budget) {
1967 /* This may happen when initial budget < sc->num_rings,
1968 * since one packet budget is given to each queue
1970 rcnt = budget;
1973 budget -= rcnt;