diff options
| author | Jakub Kicinski <[email protected]> | 2024-04-12 14:14:36 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-04-15 18:21:13 +0000 |
| commit | 05fa5c31b9882b175d5e5a8e310f31b1a9b019a3 (patch) | |
| tree | 184458d787cefcc0a4302d7c95ab0dd126e7dfc2 /tools/testing/selftests/net/lib/py/nsim.py | |
| parent | selftests: net: support use of NetdevSimDev under "with" in python (diff) | |
| download | kernel-05fa5c31b9882b175d5e5a8e310f31b1a9b019a3.tar.gz kernel-05fa5c31b9882b175d5e5a8e310f31b1a9b019a3.zip | |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
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) |
