diff options
author | Willem de Bruijn <willemb@google.com> | 2025-04-08 09:27:49 -0400 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2025-04-09 20:02:51 -0700 |
commit | fcd7132cb1f93e4d4594ecb19b8dcecdf0497d9e (patch) | |
tree | 33bbb467e9359bc65b2a5587afcb79d7e9d0e06b /include/rdma/ib_cache.h | |
parent | d4bac0288a2b444e468e6df9cb4ed69479ddf14a (diff) |
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 'include/rdma/ib_cache.h')
0 files changed, 0 insertions, 0 deletions