[PATCH net-next mlxsw v2 0/5] A test for mirror-to-gretap with LAG in UL packet path
petrm at mellanox.com
Fri Jun 15 02:28:58 AEST 2018
This patchset adds a test for "tc action mirred mirror" where the
mirrored-to device is a gretap, and underlay path contains a LAG device.
In patches #1 and #2, some helper infrastructure is introduced:
require_command(), which should henceforth be used to declare dependence
on a certain tool; and setup_wait_dev() is split out of setup_wait() as
a helper for waiting on a single device.
In patch #3, two new functions, team_create() and team_destroy(), are
added to lib.sh.
The newly-added test uses arping, which isn't necessarily available.
Therefore patch #4 introduces $ARPING, and a preexisting test is fixed
to require_command $ARPING.
In patch #5, the new test is actually added.
Changes from v1 to v2:
- Introduce patches #1 and #4
- Introduce $ARPING and $TEAMD
Petr Machata (5):
selftests: forwarding: lib: Add require_command()
selftests: forwarding: lib: Split out setup_wait_dev()
selftests: forwarding: lib: Support team devices
selftests: forwarding: Introduce $ARPING
selftests: forwarding: Test mirror-to-gretap w/ UL team
tools/testing/selftests/net/forwarding/lib.sh | 68 ++++--
.../net/forwarding/mirror_gre_bridge_1q_lag.sh | 248 +++++++++++++++++++++
.../net/forwarding/mirror_gre_vlan_bridge_1q.sh | 6 +-
3 files changed, 303 insertions(+), 19 deletions(-)
create mode 100755 tools/testing/selftests/net/forwarding/mirror_gre_bridge_1q_lag.sh
More information about the Linux-mlxsw