summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Rostecki <mrostecki@opensuse.org>2020-02-02 12:02:00 +0100
committerDaniel Borkmann <daniel@iogearbox.net>2020-02-04 00:04:06 +0100
commita525b0881de7742617343f02df4073ddc1571237 (patch)
tree933f5d0d214013e3225f81a54e940d919b002ff2
parent2577e373bbc07f18680287b3958d3b2fdebe4b20 (diff)
downloadlinux-stable-a525b0881de7742617343f02df4073ddc1571237.tar.gz
linux-stable-a525b0881de7742617343f02df4073ddc1571237.tar.bz2
linux-stable-a525b0881de7742617343f02df4073ddc1571237.zip
bpftool: Remove redundant "HAVE" prefix from the large INSN limit check
"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: 2faef64aa6b3 ("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
-rw-r--r--tools/bpf/bpftool/feature.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/bpf/bpftool/feature.c b/tools/bpf/bpftool/feature.c
index 446ba891f1e2..941873d778d8 100644
--- a/tools/bpf/bpftool/feature.c
+++ b/tools/bpf/bpftool/feature.c
@@ -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);
}