diff options
author | Jakub Kicinski <kuba@kernel.org> | 2024-04-12 07:14:36 -0700 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-04-15 11:21:13 -0700 |
commit | 05fa5c31b9882b175d5e5a8e310f31b1a9b019a3 (patch) | |
tree | 184458d787cefcc0a4302d7c95ab0dd126e7dfc2 /tools/testing/selftests/net/lib/py/nsim.py | |
parent | 8554d6e39b6ad967e1debe98550a0c56aaf8c8ea (diff) |
selftests: net: exercise page pool reporting via netlink
Add a Python test for the basic ops.
# ./net/nl_netdev.py
KTAP version 1
1..3
ok 1 nl_netdev.empty_check
ok 2 nl_netdev.lo_check
ok 3 nl_netdev.page_pool_check
# Totals: pass:3 fail:0 xfail:0 xpass:0 skip:0 error:0
Reviewed-by: Petr Machata <petrm@nvidia.com>
Link: https://lore.kernel.org/r/20240412141436.828666-7-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/nsim.py')
-rw-r--r-- | tools/testing/selftests/net/lib/py/nsim.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/lib/py/nsim.py b/tools/testing/selftests/net/lib/py/nsim.py index 94aa32f59fdb..06896cdf7c18 100644 --- a/tools/testing/selftests/net/lib/py/nsim.py +++ b/tools/testing/selftests/net/lib/py/nsim.py @@ -28,6 +28,7 @@ class NetdevSim: self.dfs_dir = "%s/ports/%u/" % (nsimdev.dfs_dir, port_index) ret = ip("-j link show dev %s" % ifname, ns=ns) self.dev = json.loads(ret.stdout)[0] + self.ifindex = self.dev["ifindex"] def dfs_write(self, path, val): self.nsimdev.dfs_write(f'ports/{self.port_index}/' + path, val) |