]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
selftests/bpf: fix xdp_redirect xdp-features selftest for veth driver
authorLorenzo Bianconi <lorenzo@kernel.org>
Thu, 6 Apr 2023 10:40:19 +0000 (12:40 +0200)
committerMartin KaFai Lau <martin.lau@kernel.org>
Thu, 6 Apr 2023 16:35:09 +0000 (09:35 -0700)
commit919e659ed12568b5b8ba6c2ffdd82d8d31fc28af
treed56fb73951e0e5b1a26d88cee53e6b554620be40
parent738a96c4a8c36950803fdd27e7c30aca92dccefd
selftests/bpf: fix xdp_redirect xdp-features selftest for veth driver

xdp-features supported by veth driver are no more static, but they
depends on veth configuration (e.g. if GRO is enabled/disabled or
TX/RX queue configuration). Take it into account in xdp_redirect
xdp-features selftest for veth driver.

Fixes: fccca038f300 ("veth: take into account device reconfiguration for xdp_features flag")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://lore.kernel.org/r/bc35455cfbb1d4f7f52536955ded81ad47d8dc54.1680777371.git.lorenzo@kernel.org
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
tools/testing/selftests/bpf/prog_tests/xdp_do_redirect.c