Lines Matching +full:auto +full:- +full:poll
1 .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
16 interrupts first (:ref:`busy polling<poll>`).
29 and the associated poll method. struct napi_struct holds the state
30 of the NAPI instance while the method is the driver-specific event
37 -----------
45 A disabled NAPI can't be scheduled and its poll method is guaranteed
55 ------------
57 napi_schedule() is the basic method of scheduling a NAPI poll.
62 Later, after NAPI is scheduled, the driver's poll method will be
64 argument - drivers can process completions for any number of Tx
69 packets driver can process in a single poll. Rx specific APIs like page
79 The poll method returns the amount of work done. If the driver still
81 the poll method should return exactly ``budget``. In that case,
86 processed) the poll method should call napi_complete_done()
96 or return ``budget - 1``.
101 -------------
104 of calls. The poll method may be called without the driver scheduling
106 it's not guaranteed that the poll method will be called, even
109 As mentioned in the :ref:`drv_ctrl` section - napi_disable() and subsequent
110 calls to the poll method only wait for the ownership of the instance
111 to be released, not for the poll method to exit. This means that
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);
149 to avoid issues on real-time kernel configurations.
152 -------------------------
157 abstraction without specific user-facing semantics. That said, most networking
183 -----------------------
199 ------------
212 ---------------
217 Very high request-per-second applications (especially routing/forwarding
226 if ``gro_flush_timeout`` passes without any busy poll call.
236 -------------
242 thread (called ``napi/${ifc-name}-${napi-id}``).