mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
selftests/bpf: Check VLAN tag and proto in xdp_metadata
Verify, whether VLAN tag and proto are set correctly. To simulate "stripped" VLAN tag on veth, send test packet from VLAN interface. Also, add TO_STR() macro for convenience. Acked-by: Stanislav Fomichev <sdf@google.com> Signed-off-by: Larysa Zaremba <larysa.zaremba@intel.com> Link: https://lore.kernel.org/r/20231205210847.28460-19-larysa.zaremba@intel.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
This commit is contained in:
committed by
Alexei Starovoitov
parent
a3850af4ea
commit
4c6612f610
@@ -9,6 +9,9 @@
|
||||
#include <bpf/libbpf.h>
|
||||
#include <time.h>
|
||||
|
||||
#define __TO_STR(x) #x
|
||||
#define TO_STR(x) __TO_STR(x)
|
||||
|
||||
int parse_num_list(const char *s, bool **set, int *set_len);
|
||||
__u32 link_info_prog_id(const struct bpf_link *link, struct bpf_link_info *info);
|
||||
int bpf_prog_test_load(const char *file, enum bpf_prog_type type,
|
||||
|
||||
Reference in New Issue
Block a user