Jakub Kicinski
29b036be1b
selftests: drv-net: test XDP, HDS auto and the ioctl path
...
Test XDP and HDS interaction. While at it add a test for using the IOCTL,
as that turned out to be the real culprit.
Testing bnxt:
# NETIF=eth0 ./ksft-net-drv/drivers/net/hds.py
KTAP version 1
1..12
ok 1 hds.get_hds
ok 2 hds.get_hds_thresh
ok 3 hds.set_hds_disable # SKIP disabling of HDS not supported by the device
ok 4 hds.set_hds_enable
ok 5 hds.set_hds_thresh_zero
ok 6 hds.set_hds_thresh_max
ok 7 hds.set_hds_thresh_gt
ok 8 hds.set_xdp
ok 9 hds.enabled_set_xdp
ok 10 hds.ioctl
ok 11 hds.ioctl_set_xdp
ok 12 hds.ioctl_enabled_set_xdp
# Totals: pass:11 fail:0 xfail:0 xpass:0 skip:1 error:0
and netdevsim:
# ./ksft-net-drv/drivers/net/hds.py
KTAP version 1
1..12
ok 1 hds.get_hds
ok 2 hds.get_hds_thresh
ok 3 hds.set_hds_disable
ok 4 hds.set_hds_enable
ok 5 hds.set_hds_thresh_zero
ok 6 hds.set_hds_thresh_max
ok 7 hds.set_hds_thresh_gt
ok 8 hds.set_xdp
ok 9 hds.enabled_set_xdp
ok 10 hds.ioctl
ok 11 hds.ioctl_set_xdp
ok 12 hds.ioctl_enabled_set_xdp
# Totals: pass:12 fail:0 xfail:0 xpass:0 skip:0 error:0
Netdevsim needs a sane default for tx/rx ring size.
ethtool 6.11 is needed for the --disable-netlink option.
Acked-by: Stanislav Fomichev <sdf@fomichev.me >
Tested-by: Taehee Yoo <ap420073@gmail.com >
Link: https://patch.msgid.link/20250221025141.1132944-2-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org >
2025-02-24 14:16:37 -08:00
..
2024-09-09 17:14:27 -07:00
2025-02-19 18:54:59 -08:00
2024-11-11 16:40:44 -08:00
2025-02-24 14:16:37 -08:00
2025-02-05 17:54:32 -08:00
2024-12-11 23:15:17 +01:00
2025-01-27 14:45:27 -08:00
2025-01-23 07:07:41 -08:00
2024-11-28 10:20:17 +01:00
2024-10-28 15:53:50 -07:00
2024-11-14 11:29:15 -08:00
2024-06-21 14:27:22 +01:00
2023-12-05 13:00:55 +01:00
2024-05-21 13:25:11 +02:00
2024-02-05 12:36:16 +00:00
2022-08-24 19:30:09 -07:00
2023-09-10 18:49:29 +01:00
2022-12-30 07:25:53 +00:00
2024-03-29 14:48:39 -07:00
2025-01-29 19:04:23 -08:00
2024-04-24 20:15:45 -07:00
2024-11-11 18:45:06 -08:00
2024-12-06 17:42:15 -08:00
2024-02-07 13:38:14 +00:00
2024-12-16 18:14:12 -08:00
2023-12-05 13:00:56 +01:00
2024-12-16 18:14:12 -08:00
2025-01-17 18:36:14 -08:00
2024-10-04 15:34:07 -07:00
2024-11-15 16:39:19 -08:00
2024-05-13 13:53:53 -07:00
2024-08-22 12:55:47 +02:00
2023-12-14 18:38:36 -08:00
2024-12-09 14:47:05 -08:00
2023-12-14 18:38:35 -08:00
2023-12-14 18:38:35 -08:00
2024-08-12 17:50:35 -07:00
2024-12-19 16:02:22 +01:00
2024-11-15 16:39:19 -08:00
2023-12-14 18:38:35 -08:00
2024-01-31 11:11:09 +00:00
2023-12-23 00:26:32 +00:00
2024-05-13 14:44:06 -07:00
2024-02-13 10:10:11 -08:00
2023-07-18 17:43:51 -07:00
2023-12-05 13:00:56 +01:00
2023-12-05 13:00:56 +01:00
2023-10-19 16:42:03 -06:00
2023-12-15 11:01:27 +00:00
2024-10-04 15:34:07 -07:00
2024-10-04 15:34:07 -07:00
2024-05-07 17:22:18 -07:00
2023-01-25 22:45:00 -08:00
2025-01-20 11:25:25 -08:00
2022-07-22 12:40:27 +01:00
2022-07-22 12:40:27 +01:00
2024-11-11 15:26:10 -08:00
2023-01-10 10:13:52 +01:00
2023-12-05 13:00:56 +01:00
2024-12-20 13:14:17 -08:00
2024-12-20 13:14:17 -08:00
2024-07-03 19:42:32 -07:00
2023-12-15 11:01:27 +00:00
2024-04-24 20:15:45 -07:00
2023-12-05 13:00:56 +01:00
2024-02-13 10:19:05 -08:00
2024-08-22 16:56:06 -07:00
2024-11-24 17:00:06 -08:00
2023-12-23 00:26:32 +00:00
2024-06-01 16:03:21 -07:00
2023-10-16 09:20:08 +01:00
2025-01-09 15:33:09 +01:00
2024-11-11 19:07:36 -08:00
2024-10-15 09:52:36 -07:00
2023-07-18 17:43:51 -07:00
2022-05-25 21:58:35 -07:00
2024-04-01 20:42:45 -07:00
2022-03-07 12:23:27 +00:00
2022-09-27 11:00:02 +02:00
2023-10-24 13:53:39 -07:00
2024-01-24 13:55:19 -08:00
2024-11-26 10:29:12 +01:00
2024-09-10 16:55:23 -07:00
2024-04-10 14:03:12 -07:00
2024-04-10 14:03:12 -07:00
2022-11-18 11:42:54 +00:00
2023-12-05 13:00:56 +01:00
2023-12-14 18:38:35 -08:00
2024-02-01 08:36:29 -08:00
2024-01-26 14:11:57 -08:00
2022-08-24 19:30:09 -07:00
2022-08-24 19:30:09 -07:00
2024-09-04 13:10:43 +01:00
2024-01-23 10:48:07 +01:00
2024-02-06 10:19:06 +01:00
2024-02-13 10:10:44 -08:00
2023-12-14 18:38:34 -08:00
2023-12-14 18:38:35 -08:00
2023-12-14 18:38:34 -08:00
2024-06-19 18:42:10 +02:00
2024-06-19 18:42:10 +02:00
2023-02-16 13:18:06 +01:00
2022-09-20 12:33:22 +02:00
2023-08-15 18:51:47 -07:00
2022-07-29 12:14:03 +01:00
2022-07-29 12:14:03 +01:00
2022-05-12 16:52:18 -07:00
2023-12-23 00:26:32 +00:00
2022-08-05 08:59:15 +01:00
2023-08-02 11:40:49 +01:00
2024-02-09 11:29:52 -08:00
2024-05-08 06:24:36 -07:00
2022-10-19 14:04:36 +01:00
2024-03-26 12:29:25 +01:00
2023-12-08 12:12:16 +00:00
2023-12-08 12:12:16 +00:00
2023-12-08 12:12:16 +00:00
2022-01-31 11:44:04 +00:00
2024-12-16 12:47:30 +00:00
2023-01-19 09:27:15 -08:00
2023-12-23 00:26:32 +00:00
2023-12-05 13:00:56 +01:00
2022-06-30 11:34:10 -07:00
2024-10-04 11:52:20 -07:00
2024-10-04 11:52:20 -07:00
2024-04-24 20:15:45 -07:00
2024-04-24 20:15:45 -07:00
2024-04-24 20:15:45 -07:00
2024-08-19 09:54:24 +01:00
2024-02-02 21:10:36 -08:00
2023-02-02 13:29:51 +01:00
2024-12-04 19:22:20 -08:00
2025-02-03 10:13:27 +00:00
2024-06-28 18:13:00 -07:00
2024-08-22 12:55:47 +02:00
2024-10-31 19:21:36 -07:00
2024-12-20 13:14:17 -08:00
2023-12-19 13:13:56 +01:00
2024-08-22 12:55:47 +02:00
2023-12-08 12:12:16 +00:00
2023-12-08 12:12:16 +00:00
2024-04-24 20:15:45 -07:00
2024-08-24 09:55:01 +02:00
2024-05-16 19:30:12 -07:00
2025-01-09 12:53:27 -08:00