aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/lib/py/utils.py
diff options
context:
space:
mode:
authorPetr Machata <[email protected]>2024-12-18 17:15:58 +0000
committerJakub Kicinski <[email protected]>2024-12-20 21:14:17 +0000
commit976d248bd33356eecb958cdc1b0c37622fd5d595 (patch)
treedcd5edea493aab8e69b87663842ea71d82706cc7 /tools/testing/selftests/net/lib/py/utils.py
parentnet: bridge: Handle changes in VLAN_FLAG_BRIDGE_BINDING (diff)
downloadkernel-976d248bd33356eecb958cdc1b0c37622fd5d595.tar.gz
kernel-976d248bd33356eecb958cdc1b0c37622fd5d595.zip
selftests: net: lib: Add a couple autodefer helpers
Alongside the helper ip_link_set_up(), one to set the link down will be useful as well. Add a helper to determine the link state as well, ip_link_is_up(), and use it to short-circuit any changes if the state is already the desired one. Furthermore, add a helper bridge_vlan_add(). Signed-off-by: Petr Machata <[email protected]> Reviewed-by: Ido Schimmel <[email protected]> Acked-by: Nikolay Aleksandrov <[email protected]> Link: https://patch.msgid.link/856d9e01725fdba21b7f6716358f645b19131af2.1734540770.git.petrm@nvidia.com Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/utils.py')
0 files changed, 0 insertions, 0 deletions