diff options
author | Wei Fang <[email protected]> | 2023-07-25 15:41:48 +0800 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-07-26 21:12:12 -0700 |
commit | 15cec633fc7bfe4cd69aa012c3b35b31acfc86f2 (patch) | |
tree | 1cc038408e6650e4beb5d5252e60df7051dcc4e8 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 2e3c5df2ee89d01c4dc6c30b4366375d3cf942bd (diff) |
net: fec: tx processing does not call XDP APIs if budget is 0
According to the clarification [1] in the latest napi.rst, the tx
processing cannot call any XDP (or page pool) APIs if the "budget"
is 0. Because NAPI is called with the budget of 0 (such as netpoll)
indicates we may be in an IRQ context, however, we cannot use the
page pool from IRQ context.
[1] https://lore.kernel.org/all/[email protected]/
Fixes: 20f797399035 ("net: fec: recycle pages for transmitted XDP frames")
Signed-off-by: Wei Fang <[email protected]>
Suggested-by: Jakub Kicinski <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions