Lines Matching full:napi
210 * napi_get_defer_hard_irqs - get the NAPI's defer_hard_irqs
211 * @n: napi struct to get the defer_hard_irqs field from
213 * Return: the per-NAPI value of the defar_hard_irqs field.
221 * napi_set_defer_hard_irqs - set the defer_hard_irqs for a napi
240 struct napi_struct *napi; in netdev_set_defer_hard_irqs() local
244 list_for_each_entry(napi, &netdev->napi_list, dev_list) in netdev_set_defer_hard_irqs()
245 napi_set_defer_hard_irqs(napi, defer); in netdev_set_defer_hard_irqs()
253 * @n: napi struct to get the gro_flush_timeout from
255 * Return: the per-NAPI value of the gro_flush_timeout field.
264 * napi_set_gro_flush_timeout - set the gro_flush_timeout for a napi
265 * @n: napi struct to set the gro_flush_timeout
268 * napi_set_gro_flush_timeout sets the per-NAPI gro_flush_timeout
286 struct napi_struct *napi; in netdev_set_gro_flush_timeout() local
290 list_for_each_entry(napi, &netdev->napi_list, dev_list) in netdev_set_gro_flush_timeout()
291 napi_set_gro_flush_timeout(napi, timeout); in netdev_set_gro_flush_timeout()
299 * @n: napi struct to get the irq_suspend_timeout from
301 * Return: the per-NAPI value of the irq_suspend_timeout field.
310 * napi_set_irq_suspend_timeout - set the irq_suspend_timeout for a napi
311 * @n: napi struct to set the irq_suspend_timeout
314 * napi_set_irq_suspend_timeout sets the per-NAPI irq_suspend_timeout
350 void xdp_do_check_flushed(struct napi_struct *napi);
352 static inline void xdp_do_check_flushed(struct napi_struct *napi) { } in xdp_do_check_flushed() argument
355 /* Best effort check that NAPI is not idle (can't be scheduled to run) */
356 static inline void napi_assert_will_not_race(const struct napi_struct *napi) in napi_assert_will_not_race() argument
359 if (!napi->poll_list.next) in napi_assert_will_not_race()
363 WARN_ON(!test_bit(NAPI_STATE_SCHED, &napi->state)); in napi_assert_will_not_race()
364 WARN_ON(READ_ONCE(napi->list_owner) != -1); in napi_assert_will_not_race()