Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests/bpf: Update cpumap/devmap sec_name

Substitute deprecated xdp_cpumap and xdp_devmap sec_name with
xdp/cpumap and xdp/devmap respectively in bpf kselftests.

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/9a4286cd36781e2c31ba3773bfdcf45cf1bbaa9e.1643727185.git.lorenzo@kernel.org

authored by

Lorenzo Bianconi and committed by
Andrii Nakryiko
439f0336 4a4d4cee

+5 -5
+1 -1
tools/testing/selftests/bpf/progs/test_xdp_with_cpumap_frags_helpers.c
··· 12 12 __uint(max_entries, 4); 13 13 } cpu_map SEC(".maps"); 14 14 15 - SEC("xdp_cpumap/dummy_cm") 15 + SEC("xdp/cpumap") 16 16 int xdp_dummy_cm(struct xdp_md *ctx) 17 17 { 18 18 return XDP_PASS;
+1 -1
tools/testing/selftests/bpf/progs/test_xdp_with_cpumap_helpers.c
··· 24 24 return XDP_PASS; 25 25 } 26 26 27 - SEC("xdp_cpumap/dummy_cm") 27 + SEC("xdp/cpumap") 28 28 int xdp_dummy_cm(struct xdp_md *ctx) 29 29 { 30 30 if (ctx->ingress_ifindex == IFINDEX_LO)
+1 -1
tools/testing/selftests/bpf/progs/test_xdp_with_devmap_frags_helpers.c
··· 12 12 /* valid program on DEVMAP entry via SEC name; 13 13 * has access to egress and ingress ifindex 14 14 */ 15 - SEC("xdp_devmap/map_prog") 15 + SEC("xdp/devmap") 16 16 int xdp_dummy_dm(struct xdp_md *ctx) 17 17 { 18 18 return XDP_PASS;
+1 -1
tools/testing/selftests/bpf/progs/test_xdp_with_devmap_helpers.c
··· 27 27 /* valid program on DEVMAP entry via SEC name; 28 28 * has access to egress and ingress ifindex 29 29 */ 30 - SEC("xdp_devmap/map_prog") 30 + SEC("xdp/devmap") 31 31 int xdp_dummy_dm(struct xdp_md *ctx) 32 32 { 33 33 char fmt[] = "devmap redirect: dev %u -> dev %u len %u\n";
+1 -1
tools/testing/selftests/bpf/progs/xdp_redirect_multi_kern.c
··· 70 70 BPF_F_BROADCAST | BPF_F_EXCLUDE_INGRESS); 71 71 } 72 72 73 - SEC("xdp_devmap/map_prog") 73 + SEC("xdp/devmap") 74 74 int xdp_devmap_prog(struct xdp_md *ctx) 75 75 { 76 76 void *data_end = (void *)(long)ctx->data_end;