Lines Matching +full:polling +full:- +full:delay
1 .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
16 interrupts first (:ref:`busy polling<poll>`).
30 of the NAPI instance while the method is the driver-specific event
37 -----------
55 ------------
64 argument - drivers can process completions for any number of Tx
96 or return ``budget - 1``.
101 -------------
109 As mentioned in the :ref:`drv_ctrl` section - napi_disable() and subsequent
118 --------------------------
121 the NAPI instance - until NAPI polling finishes any further
125 to IRQ being auto-masked by the device) should use the napi_schedule_prep()
128 .. code-block:: c
130 if (napi_schedule_prep(&v->napi)) {
131 mydrv_mask_rxtx_irq(v->idx);
133 __napi_schedule(&v->napi);
138 .. code-block:: c
140 if (budget && napi_complete_done(&v->napi, work_done)) {
141 mydrv_unmask_rxtx_irq(v->idx);
142 return min(work_done, budget - 1);
151 -------------------------
155 mapped to queues and interrupts. NAPI is primarily a polling/processing
156 abstraction without specific user-facing semantics. That said, most networking
182 -----------------------
191 is reused to control the delay of the timer, while
197 Busy polling
198 ------------
200 Busy polling allows a user process to check for incoming packets before
201 the device interrupt fires. As is the case with any busy polling it trades
202 off CPU cycles for lower latency (production uses of NAPI busy polling
205 Busy polling is enabled by either setting ``SO_BUSY_POLL`` on
207 ``net.core.busy_read`` sysctls. An io_uring API for NAPI busy polling
211 ---------------
213 While busy polling is supposed to be used by low latency applications,
216 Very high request-per-second applications (especially routing/forwarding
222 polling operation periodically, and the driver should keep the device IRQs
227 The NAPI budget for busy polling is lower than the default (which makes
228 sense given the low latency intention of normal busy polling). This is
235 -------------
241 thread (called ``napi/${ifc-name}-${napi-id}``).