[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <3b608d4b-8824-8084-186a-dc3b2639f370@iogearbox.net>
Date: Fri, 9 Nov 2018 08:39:26 +0100
From: Daniel Borkmann <daniel@...earbox.net>
To: Yonghong Song <yhs@...com>, ast@...com, netdev@...r.kernel.org,
zhijianx.li@...el.com
Cc: kernel-team@...com
Subject: Re: [PATCH bpf v2] tools/bpftool: copy a few net uapi headers to
tools directory
On 11/08/2018 04:55 AM, Yonghong Song wrote:
> Commit f6f3bac08ff9 ("tools/bpf: bpftool: add net support")
> added certain networking support to bpftool.
> The implementation relies on a relatively recent uapi header file
> linux/tc_act/tc_bpf.h on the host which contains the marco
> definition of TCA_ACT_BPF_ID.
>
> Unfortunately, this is not the case for all distributions.
> See the email message below where rhel-7.2 does not have
> an up-to-date linux/tc_act/tc_bpf.h.
> https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1799211.html
> Further investigation found that linux/pkt_cls.h is also needed for macro
> TCA_BPF_TAG.
>
> This patch fixed the issue by copying linux/tc_act/tc_bpf.h
> and linux/pkt_cls.h from kernel include/uapi directory to
> tools/include/uapi directory so building the bpftool does not depend
> on host system for these files.
>
> Fixes: f6f3bac08ff9 ("tools/bpf: bpftool: add net support")
> Reported-by: kernel test robot <rong.a.chen@...el.com>
> Cc: Li Zhijian <zhijianx.li@...el.com>
> Signed-off-by: Yonghong Song <yhs@...com>
Applied to bpf, thanks Yonghong!
Powered by blists - more mailing lists