Commit 15cec63
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/20230720161323.2025379-1-kuba@kernel.org/
Fixes: 20f7973 ("net: fec: recycle pages for transmitted XDP frames")
Signed-off-by: Wei Fang <wei.fang@nxp.com>
Suggested-by: Jakub Kicinski <kuba@kernel.org>
Link: https://lore.kernel.org/r/20230725074148.2936402-1-wei.fang@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent 2e3c5df commit 15cec63
1 file changed
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1372 | 1372 | | |
1373 | 1373 | | |
1374 | 1374 | | |
1375 | | - | |
| 1375 | + | |
1376 | 1376 | | |
1377 | 1377 | | |
1378 | 1378 | | |
| |||
1416 | 1416 | | |
1417 | 1417 | | |
1418 | 1418 | | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
| 1422 | + | |
| 1423 | + | |
| 1424 | + | |
| 1425 | + | |
| 1426 | + | |
1419 | 1427 | | |
1420 | 1428 | | |
1421 | 1429 | | |
| |||
1508 | 1516 | | |
1509 | 1517 | | |
1510 | 1518 | | |
1511 | | - | |
| 1519 | + | |
1512 | 1520 | | |
1513 | 1521 | | |
1514 | 1522 | | |
1515 | 1523 | | |
1516 | 1524 | | |
1517 | 1525 | | |
1518 | | - | |
| 1526 | + | |
1519 | 1527 | | |
1520 | 1528 | | |
1521 | 1529 | | |
| |||
1858 | 1866 | | |
1859 | 1867 | | |
1860 | 1868 | | |
1861 | | - | |
| 1869 | + | |
1862 | 1870 | | |
1863 | 1871 | | |
1864 | 1872 | | |
| |||
0 commit comments