determine which version of libbpf we have at configure time
if version >= 0.7, add libxdp as a build requirement and include the libxdp version of the XSK header
otherwise, do what we currently do
test that this works for all our various distros -- chances are there will be at least one case where the packaged libbpf is 0.7 but there is no packaged libxdp, for instance...
Ideally, by the time we get around to this, there will be examples of other projects who have dealt with this -- at the time of writing, this is not the case :(
libbpf 0.7 has deprecated a whole bunch of XDP-related API methods -- these APIs are now implemented by libxdp (https://github.com/xdp-project/xdp-tools).
To account for this, we will need to:
Ideally, by the time we get around to this, there will be examples of other projects who have dealt with this -- at the time of writing, this is not the case :(
Reference: https://lore.kernel.org/bpf/87mtms86e9.fsf@toke.dk/T/