]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: forwarding: lib: rewrite processing of command line arguments
authorIoana Ciornei <ioana.ciornei@nxp.com>
Tue, 7 Apr 2026 10:20:58 +0000 (13:20 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 9 Apr 2026 02:26:44 +0000 (19:26 -0700)
commitfff75dba7992d8f63d4df8796baf8114015842cc
tree00593c5bd017877442bafacc3705806fd109b850
parent686a7587bd0be9407f5ea748edf3d8bb00e5bc72
selftests: forwarding: lib: rewrite processing of command line arguments

The piece of code which processes the command line arguments and
populates NETIFS based on them is really unobvious. Rewrite it so that
the intention is clear and the code is easy to follow.

Suggested-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Link: https://patch.msgid.link/20260407102058.867279-1-ioana.ciornei@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/forwarding/lib.sh