diff options
author | Petr Machata <petrm@nvidia.com> | 2025-09-25 19:31:53 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-09-26 17:48:40 -0700 |
commit | 02aabe00b2e1cc61e7a60616d6044592f12a748c (patch) | |
tree | c67440737464b6269b2e37a7383640c2b8ac0061 /rust/helpers/mm.c | |
parent | 14b72996ae8052b2174fc36f151791f7604d3b1b (diff) |
selftests: forwarding: lib: Add an autodefer variant of vrf_prepare()
Most forwarding tests invoke vrf_prepare() to set up VRF forwarding and
vrf_cleanup() to restore the original configuration. Add a helper,
adf_vrf_prepare(), which is like vrf_prepare(), but takes care of
scheduling the cleanup automatically.
Convert a number of tests that currently use defer to schedule the cleanup.
Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/2f2000e54ae700d560a8d6128322dade3bd2207e.1758821127.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'rust/helpers/mm.c')
0 files changed, 0 insertions, 0 deletions