aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorMagnus Karlsson <[email protected]>2023-01-11 10:35:23 +0100
committerAlexei Starovoitov <[email protected]>2023-01-11 18:16:52 -0800
commit80bea9acabb7690042f8efe25f208ffc67032aac (patch)
tree5928d4db7c4afc7de05ea03f25211802e1816f18 /lib/memory-notifier-error-inject.c
parentf0a249df1b071d6f7177cc615d688a3a5d48423a (diff)
selftests/xsk: add test when some packets are XDP_DROPed
Add a new test where some of the packets are not passed to the AF_XDP socket and instead get a XDP_DROP verdict. This is important as it tests the recycling mechanism of the buffer pool. If a packet is not sent to the AF_XDP socket, the buffer the packet resides in is instead recycled so it can be used again without the round-trip to user space. The test introduces a new XDP program that drops every other packet. Signed-off-by: Magnus Karlsson <[email protected]> Acked-by: Maciej Fijalkowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions