]> www.infradead.org Git - users/dwmw2/linux.git/commit
selftests: forwarding: add ability to assemble NETIFS array by driver name
authorJiri Pirko <jiri@nvidia.com>
Wed, 24 Apr 2024 10:40:46 +0000 (12:40 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Fri, 26 Apr 2024 11:26:53 +0000 (13:26 +0200)
commit41ad836e393aa834039de48c84305dfe7d6aceef
treee749f542eae5cf13e18083a27fa9e70517fa8fbf
parent96a8326d69fffd7e8c2eb737dc060d8009a33b39
selftests: forwarding: add ability to assemble NETIFS array by driver name

Allow driver tests to work without specifying the netdevice names.
Introduce a possibility to search for available netdevices according to
set driver name. Allow test to specify the name by setting
NETIF_FIND_DRIVER variable.

Note that user overrides this either by passing netdevice names on the
command line or by declaring NETIFS array in custom forwarding.config
configuration file.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Benjamin Poirier <bpoirier@nvidia.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/testing/selftests/net/forwarding/lib.sh