diff options
author | Petr Machata <petrm@nvidia.com> | 2024-12-05 16:40:59 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-12-09 14:47:05 -0800 |
commit | d76ccb2ec368c8a44f64839140cd253c19f6a79a (patch) | |
tree | 5a87c5531dce0c8b21e207dd59e3f0484e0b97ed /rust/helpers/task.c | |
parent | 8653eb21d68c6882ce5716b04379431817310b85 (diff) |
selftests: net: lib: Add several autodefer helpers
Add ip_link_set_addr(), ip_link_set_up(), ip_addr_add() and ip_route_add()
to the suite of helpers that automatically schedule a corresponding
cleanup.
When setting a new MAC, one needs to remember the old address first. Move
mac_get() from forwarding/ to that end.
Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Link: https://patch.msgid.link/add6bcbe30828fd01363266df20c338cf13aaf25.1733412063.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions