diff options
author | Tushar Vyavahare <tushar.vyavahare@intel.com> | 2023-09-27 16:52:41 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2023-10-04 16:26:02 +0300 |
commit | 6d198a89c004723d9d2fff469fdcb1074c9642d6 (patch) | |
tree | d98df1dfe90f189683585d513d95fc6172c03ba4 /tools/testing/selftests/bpf/xsk_xdp_common.h | |
parent | fc2cb86495da6b67518bedbf1a2d49af220d1521 (diff) | |
download | linux-6d198a89c004723d9d2fff469fdcb1074c9642d6.tar.xz |
selftests/xsk: Add a test for shared umem feature
Add a new test for testing shared umem feature. This is accomplished by
adding a new XDP program and using the multiple sockets.
The new XDP program redirects the packets based on the destination MAC
address.
Signed-off-by: Tushar Vyavahare <tushar.vyavahare@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Magnus Karlsson <magnus.karlsson@intel.com>
Link: https://lore.kernel.org/bpf/20230927135241.2287547-9-tushar.vyavahare@intel.com
Diffstat (limited to 'tools/testing/selftests/bpf/xsk_xdp_common.h')
-rw-r--r-- | tools/testing/selftests/bpf/xsk_xdp_common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/xsk_xdp_common.h b/tools/testing/selftests/bpf/xsk_xdp_common.h index f55d61625336..5a6f36f07383 100644 --- a/tools/testing/selftests/bpf/xsk_xdp_common.h +++ b/tools/testing/selftests/bpf/xsk_xdp_common.h @@ -3,6 +3,8 @@ #ifndef XSK_XDP_COMMON_H_ #define XSK_XDP_COMMON_H_ +#define MAX_SOCKETS 2 + struct xdp_info { __u64 count; } __attribute__((aligned(32))); |