summaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorTaehee Yoo <ap420073@gmail.com>2025-03-09 16:42:19 +0300
committerJakub Kicinski <kuba@kernel.org>2025-03-10 23:31:12 +0300
commit75cc19c8ff8932d7da23480a49d1f9a050289c37 (patch)
treeb18d0123dd403109186f1875ed2ebd502a0de30b /net/switchdev/switchdev.c
parenta70f891e0fa0435379ad4950e156a15a4ef88b4d (diff)
downloadlinux-75cc19c8ff8932d7da23480a49d1f9a050289c37.tar.xz
selftests: drv-net: add xdp cases for ping.py
ping.py has 3 cases, test_v4, test_v6 and test_tcp. But these cases are not executed on the XDP environment. So, it adds XDP environment, existing tests(test_v4, test_v6, and test_tcp) are executed too on the below XDP environment. So, it adds XDP cases. 1. xdp-generic + single-buffer 2. xdp-generic + multi-buffer 3. xdp-native + single-buffer 4. xdp-native + multi-buffer 5. xdp-offload It also makes test_{v4 | v6 | tcp} sending large size packets. this may help to check whether multi-buffer is working or not. Note that the physical interface may be down and then up when xdp is attached or detached. This takes some period to activate traffic. So sleep(10) is added if the test interface is the physical interface. netdevsim and veth type interfaces skip sleep. Signed-off-by: Taehee Yoo <ap420073@gmail.com> Link: https://patch.msgid.link/20250309134219.91670-9-ap420073@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions