traffic-pacing-edt: Propagate define that enables BTF maps

Two errors:
- Wrong define in config.mk
- Use BPF_CFLAGS to reach llvm compile cflags

Signed-off-by: Jesper D. Brouer <netoptimizer@brouer.com>
This commit is contained in:
Jesper D. Brouer
2020-12-22 19:16:10 +01:00
parent 39ab41d0d6
commit 904c820e7e

View File

@@ -15,7 +15,7 @@ check_tc_libbpf()
if echo $tc_version | grep -q libbpf; then
libbpf_version=${tc_version##*libbpf }
echo "HAVE_TC_LIBBPF:=y" >> $CONFIG
echo "CFLAGS += -DHAVE_LIBBPF" >> $CONFIG
echo "BPF_CFLAGS += -DHAVE_TC_LIBBPF" >> $CONFIG
echo "yes ($libbpf_version)"
else
echo "no"