net/af_xdp: revert use BPF link for XDP programs
authorCiara Loftus <ciara.loftus@intel.com>
Fri, 12 Nov 2021 10:30:01 +0000 (10:30 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 15 Nov 2021 17:01:09 +0000 (18:01 +0100)
commit9f394004c35d71025408fdba439d72fea49470d0
tree2a2f8ab849333e432ab90385d864c5a4f2b66855
parent5139502783ed4e3ccaab49548812b8bdd7fb14b5
net/af_xdp: revert use BPF link for XDP programs

The commit ae70cc6e893b ("net/af_xdp: use BPF link for XDP programs")
caused compilation errors on kernels older than v5.8 due to absence of
the bpf_link_info struct and some definitions in the linux/bpf.h header.
Since relying on the reported kernel version is not a robust solution
and also since there doesn't appear to be a suitable definition in the
bpf header that the preprocessor could rely on to determine support for
bpf link, we will take a different approach to solving the issue that
the original patch attempted to solve. The next commit will address
this.

Fixes: ae70cc6e893b ("net/af_xdp: use BPF link for XDP programs")

Signed-off-by: Ciara Loftus <ciara.loftus@intel.com>
drivers/net/af_xdp/compat.h
drivers/net/af_xdp/meson.build
drivers/net/af_xdp/rte_eth_af_xdp.c