diff options
author | Willem de Bruijn <willemb@google.com> | 2025-04-08 16:27:49 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2025-04-10 06:02:51 +0300 |
commit | fcd7132cb1f93e4d4594ecb19b8dcecdf0497d9e (patch) | |
tree | 33bbb467e9359bc65b2a5587afcb79d7e9d0e06b /drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | |
parent | d4bac0288a2b444e468e6df9cb4ed69479ddf14a (diff) | |
download | linux-fcd7132cb1f93e4d4594ecb19b8dcecdf0497d9e.tar.xz |
selftests/net: test sk_filter support for SKF_NET_OFF on frags
Verify that a classic BPF linux socket filter correctly matches
packet contents. Including when accessing contents in an
skb_frag.
1. Open a SOCK_RAW socket with a classic BPF filter on UDP dport 8000.
2. Open a tap device with IFF_NAPI_FRAGS to inject skbs with frags.
3. Send a packet for which the UDP header is in frag[0].
4. Receive this packet to demonstrate that the socket accepted it.
Acked-by: Stanislav Fomichev <sdf@fomichev.me>
Signed-off-by: Willem de Bruijn <willemb@google.com>
Link: https://lore.kernel.org/r/20250408132833.195491-3-willemdebruijn.kernel@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c')
0 files changed, 0 insertions, 0 deletions