diff options
author | Petr Machata | 2018-11-19 17:11:08 +0100 |
---|---|---|
committer | David S. Miller | 2018-11-20 02:59:43 +0100 |
commit | 601bc1c13916899a14e682ada3dfa3ec21b13318 (patch) | |
tree | 75e540b25fb883b25e1b28b70432bbc3dd6f6387 /security | |
parent | net: skb_scrub_packet(): Scrub offload_fwd_mark (diff) | |
download | kernel-qcow2-linux-601bc1c13916899a14e682ada3dfa3ec21b13318.tar.gz kernel-qcow2-linux-601bc1c13916899a14e682ada3dfa3ec21b13318.tar.xz kernel-qcow2-linux-601bc1c13916899a14e682ada3dfa3ec21b13318.zip |
selftests: forwarding: lib: Support NUM_NETIFS of 0
So far the case of NUM_NETIFS of 0 has not been interesting. However if
one wishes to reuse the lib.sh routines in a setup of a separate
namespace, being able to import like this is handy.
Therefore replace the {1..$NUM_NETIFS} references, which cause iteration
over 1 and 0, with an explicit for loop like we do in setup_wait() and
tc_offload_check(), so that for NUM_NETIFS of 0 no iteration is done.
Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions