selftests/bpf: Update cpumap/devmap sec_name
authorLorenzo Bianconi <lorenzo@kernel.org>
Tue, 1 Feb 2022 14:58:09 +0000 (15:58 +0100)
committerAndrii Nakryiko <andrii@kernel.org>
Tue, 1 Feb 2022 17:51:31 +0000 (09:51 -0800)
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
tools/testing/selftests/bpf/progs/test_xdp_with_cpumap_frags_helpers.c
tools/testing/selftests/bpf/progs/test_xdp_with_cpumap_helpers.c
tools/testing/selftests/bpf/progs/test_xdp_with_devmap_frags_helpers.c
tools/testing/selftests/bpf/progs/test_xdp_with_devmap_helpers.c
tools/testing/selftests/bpf/progs/xdp_redirect_multi_kern.c

index 62fb7cd4d87ac255c81a5c36661d66b69f1776f9..97ed625bb70a498753b2e9af25727f70530028a1 100644 (file)
@@ -12,7 +12,7 @@ struct {
        __uint(max_entries, 4);
 } cpu_map SEC(".maps");
 
-SEC("xdp_cpumap/dummy_cm")
+SEC("xdp/cpumap")
 int xdp_dummy_cm(struct xdp_md *ctx)
 {
        return XDP_PASS;
index 48007f17dfa86af0f86235aab320b9b83647ddb0..20ec6723df18a6e8c036bf7754fbed83f2d2430b 100644 (file)
@@ -24,7 +24,7 @@ int xdp_dummy_prog(struct xdp_md *ctx)
        return XDP_PASS;
 }
 
-SEC("xdp_cpumap/dummy_cm")
+SEC("xdp/cpumap")
 int xdp_dummy_cm(struct xdp_md *ctx)
 {
        if (ctx->ingress_ifindex == IFINDEX_LO)
index e1caf510b7d28343ab16c8c5d723176a9110bf03..cdcf7de7ec8c528d2167a5f6daebe1228ab4262f 100644 (file)
@@ -12,7 +12,7 @@ struct {
 /* valid program on DEVMAP entry via SEC name;
  * has access to egress and ingress ifindex
  */
-SEC("xdp_devmap/map_prog")
+SEC("xdp/devmap")
 int xdp_dummy_dm(struct xdp_md *ctx)
 {
        return XDP_PASS;
index 8ae11fab8316d8c203faa06c2ca2ed6c79f00a97..4139a14f9996723780e866842490ee6cc905b823 100644 (file)
@@ -27,7 +27,7 @@ int xdp_dummy_prog(struct xdp_md *ctx)
 /* valid program on DEVMAP entry via SEC name;
  * has access to egress and ingress ifindex
  */
-SEC("xdp_devmap/map_prog")
+SEC("xdp/devmap")
 int xdp_dummy_dm(struct xdp_md *ctx)
 {
        char fmt[] = "devmap redirect: dev %u -> dev %u len %u\n";
index 8395782b6e0a3c2d82f52298b80cf3d3b941969f..97b26a30b59a758f5a5f2152af509acef80031ce 100644 (file)
@@ -70,7 +70,7 @@ int xdp_redirect_map_all_prog(struct xdp_md *ctx)
                                BPF_F_BROADCAST | BPF_F_EXCLUDE_INGRESS);
 }
 
-SEC("xdp_devmap/map_prog")
+SEC("xdp/devmap")
 int xdp_devmap_prog(struct xdp_md *ctx)
 {
        void *data_end = (void *)(long)ctx->data_end;