Lines Matching refs:budget
198 * @budget: how many cleans we're allowed
200 * Returns true if there's any budget left (e.g. the clean is finished)
202 static bool i40e_clean_tx_irq(struct i40e_ring *tx_ring, int budget)
283 /* update budget accounting */
284 budget--;
285 } while (likely(budget));
343 return budget > 0;
875 * @budget: how many cleans we're allowed
877 * Returns true if there's any budget left (e.g. the clean is finished)
879 static int i40e_clean_rx_irq(struct i40e_ring *rx_ring, int budget)
1018 budget--;
1021 if (!budget)
1049 return budget > 0;
1055 * @budget: amount of work driver is allowed to do this pass, in packets
1061 int i40evf_napi_poll(struct napi_struct *napi, int budget)
1076 * budget and be more aggressive about cleaning up the Tx descriptors.
1081 /* We attempt to distribute budget to each Rx queue fairly, but don't
1082 * allow the budget to go below 1 because that would exit polling early.
1084 budget_per_ring = max(budget/q_vector->num_ringpairs, 1);
1089 /* If work not completed, return budget and polling will return */
1091 return budget;