]> git.baikalelectronics.ru Git - kernel.git/commitdiff
bpftool: Remove redundant "HAVE" prefix from the large INSN limit check
authorMichal Rostecki <mrostecki@opensuse.org>
Sun, 2 Feb 2020 11:02:00 +0000 (12:02 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 3 Feb 2020 23:04:06 +0000 (00:04 +0100)
"HAVE" prefix is already applied by default to feature macros and before
this change, the large INSN limit macro had the incorrect name with
double "HAVE".

Fixes: 43c053118bb7 ("bpftool: Add misc section and probe for large INSN limit")
Signed-off-by: Michal Rostecki <mrostecki@opensuse.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20200202110200.31024-1-mrostecki@opensuse.org
tools/bpf/bpftool/feature.c

index 446ba891f1e23311799726bc9ce1082e9acc3dc3..941873d778d8f599c5b3265d6a1ee702b2afdd1c 100644 (file)
@@ -580,7 +580,7 @@ probe_large_insn_limit(const char *define_prefix, __u32 ifindex)
        res = bpf_probe_large_insn_limit(ifindex);
        print_bool_feature("have_large_insn_limit",
                           "Large program size limit",
-                          "HAVE_LARGE_INSN_LIMIT",
+                          "LARGE_INSN_LIMIT",
                           res, define_prefix);
 }