diff options
author | Maciej Fijalkowski <maciej.fijalkowski@intel.com> | 2022-09-01 14:48:13 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2022-09-02 16:38:08 +0300 |
commit | fe2ad08e1e1df77b6941916b87d4871d751b88b6 (patch) | |
tree | c41871e800a7c4cd61b5e6311fa03af9a5bb7415 /tools/testing/selftests/bpf/get_cgroup_id_user.c | |
parent | c29fe883defcbc6cd16176787a2084b8e05dabf0 (diff) | |
download | linux-fe2ad08e1e1df77b6941916b87d4871d751b88b6.tar.xz |
selftests/xsk: Add support for zero copy testing
Introduce new mode to xdpxceiver responsible for testing AF_XDP zero
copy support of driver that serves underlying physical device. When
setting up test suite, determine whether driver has ZC support or not by
trying to bind XSK ZC socket to the interface. If it succeeded,
interpret it as ZC support being in place and do softirq and busy poll
tests for zero copy mode.
Note that Rx dropped tests are skipped since ZC path is not touching
rx_dropped stat at all.
Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Magnus Karlsson <magnus.karlsson@intel.com>
Link: https://lore.kernel.org/bpf/20220901114813.16275-7-maciej.fijalkowski@intel.com
Diffstat (limited to 'tools/testing/selftests/bpf/get_cgroup_id_user.c')
0 files changed, 0 insertions, 0 deletions