]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
selftest/bpf: Enable instruction array test for powerpc
authorAbhishek Dubey <adubey@linux.ibm.com>
Wed, 1 Apr 2026 15:21:31 +0000 (11:21 -0400)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Fri, 3 Apr 2026 08:44:25 +0000 (14:14 +0530)
With instruction array now supported, enable corresponding bpf
selftest for powerpc.

Signed-off-by: Abhishek Dubey <adubey@linux.ibm.com>
Tested-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
Acked-by: Hari Bathini <hbathini@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20260401152133.42544-3-adubey@linux.ibm.com
tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c

index 269870bec94117ef951e3fe2a734e148103c96de..482d38b9c29e1d92d78e2ad9cd9cc695b4965fce 100644 (file)
@@ -3,7 +3,7 @@
 #include <bpf/bpf.h>
 #include <test_progs.h>
 
-#ifdef __x86_64__
+#if defined(__x86_64__) || defined(__powerpc__)
 static int map_create(__u32 map_type, __u32 max_entries)
 {
        const char *map_name = "insn_array";