linux_dsm_epyc7002/tools/include/uapi
Yonghong Song 49a249c387 tools/bpftool: copy a few net uapi headers to tools directory
Commit f6f3bac08f ("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: f6f3bac08f ("tools/bpf: bpftool: add net support")
Reported-by: kernel test robot <rong.a.chen@intel.com>
Cc: Li Zhijian <zhijianx.li@intel.com>
Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
2018-11-09 08:18:31 +01:00
..
asm selftests/bpf: add architecture-agnostic headers 2018-05-10 00:40:58 +02:00
asm-generic tools arch uapi: Update asm-generic/unistd.h and arm64 unistd.h copies 2018-10-31 09:57:51 -03:00
drm tools headers uapi: Update tools's copy of drm/drm.h 2018-09-11 11:07:56 -03:00
linux tools/bpftool: copy a few net uapi headers to tools directory 2018-11-09 08:18:31 +01:00
sound tools include uapi: Update asound.h copy 2018-10-31 09:57:52 -03:00