Lines Matching full:napi
206 * napi_get_defer_hard_irqs - get the NAPI's defer_hard_irqs
207 * @n: napi struct to get the defer_hard_irqs field from
209 * Return: the per-NAPI value of the defar_hard_irqs field.
217 * napi_set_defer_hard_irqs - set the defer_hard_irqs for a napi
236 struct napi_struct *napi;
240 list_for_each_entry(napi, &netdev->napi_list, dev_list)
241 napi_set_defer_hard_irqs(napi, defer);
249 * @n: napi struct to get the gro_flush_timeout from
251 * Return: the per-NAPI value of the gro_flush_timeout field.
260 * napi_set_gro_flush_timeout - set the gro_flush_timeout for a napi
261 * @n: napi struct to set the gro_flush_timeout
264 * napi_set_gro_flush_timeout sets the per-NAPI gro_flush_timeout
282 struct napi_struct *napi;
286 list_for_each_entry(napi, &netdev->napi_list, dev_list)
287 napi_set_gro_flush_timeout(napi, timeout);
295 * @n: napi struct to get the irq_suspend_timeout from
297 * Return: the per-NAPI value of the irq_suspend_timeout field.
306 * napi_set_irq_suspend_timeout - set the irq_suspend_timeout for a napi
307 * @n: napi struct to set the irq_suspend_timeout
310 * napi_set_irq_suspend_timeout sets the per-NAPI irq_suspend_timeout
343 void xdp_do_check_flushed(struct napi_struct *napi);
345 static inline void xdp_do_check_flushed(struct napi_struct *napi) { }
348 /* Best effort check that NAPI is not idle (can't be scheduled to run) */
349 static inline void napi_assert_will_not_race(const struct napi_struct *napi)
352 if (!napi->poll_list.next)
356 WARN_ON(!test_bit(NAPI_STATE_SCHED, &napi->state));
357 WARN_ON(READ_ONCE(napi->list_owner) != -1);