Files
Linux/include/net
Sebastian Andrzej Siewior 9a675ba55a net, bpf: Add a warning if NAPI cb missed xdp_do_flush().
A few drivers were missing a xdp_do_flush() invocation after
XDP_REDIRECT.

Add three helper functions each for one of the per-CPU lists. Return
true if the per-CPU list is non-empty and flush the list.

Add xdp_do_check_flushed() which invokes each helper functions and
creates a warning if one of the functions had a non-empty list.

Hide everything behind CONFIG_DEBUG_NET.

Suggested-by: Jesper Dangaard Brouer <[email protected]>
Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Reviewed-by: Toke Høiland-Jørgensen <[email protected]>
Acked-by: Jakub Kicinski <[email protected]>
Acked-by: John Fastabend <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
2023-10-17 15:02:03 +02:00
..
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2023-10-06 17:08:47 +03:00
…
…
…
…
…
…
…
…
…
…
2023-08-15 15:01:03 -07:00
…
…
…
…
…
…
…
…
2023-09-06 06:05:59 +01:00
…
2023-10-01 19:39:18 +01:00
…
…
…
…
…
…
…
…
…
…
2023-08-22 17:31:18 -07:00
…
…
…
2023-07-14 20:39:30 -07:00
…
2023-10-01 13:20:36 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
2023-10-04 11:49:20 -07:00
…
…
2023-07-28 14:07:59 -07:00
…
…
2023-09-14 16:16:36 +02:00
2023-08-02 10:58:26 +01:00
…
…
2023-07-19 09:56:49 -07:00
2023-07-19 09:56:49 -07:00