[PATCH net-next mlxsw 0/3] Fixes for running mirror-to-gretap tests on veth

Petr Machata petrm at mellanox.com
Tue Jun 26 09:31:27 AEST 2018


The forwarding selftests infrastructure makes it possible to run the
individual tests on a purely software netdevices. Names of interfaces to
run the test with can be passed as command line arguments to a test.
lib.sh then creates veth pairs backing the interfaces if none exist in
the system.

However, the tests need to recognize that they might be run on a soft
device. Many mirror-to-gretap are buggy in this regard. This patch set
aims to fix the problems in running mirror-to-gretap tests on veth
devices.

In patch #1, installing a trap is made optional.
In patch #2, tc filters in several tests are tweaked to work with veth.
In patch #3, the logic for waiting for neighbor is fixed for veth.

Ido, even if you don't want to review these, please enroll them in
combined queue so that they get exercised in regression. I'll send them
upstream later this week. Thanks!

Petr Machata (3):
  selftests: forwarding: lib: Avoid trapping soft devices
  selftests: forwarding: Tweak tc filters for mirror-to-gretap tests
  selftests: forwarding: mirror_gre_changes: Fix waiting for neighbor

 tools/testing/selftests/net/forwarding/lib.sh            | 16 ++++++++++++----
 .../net/forwarding/mirror_gre_bridge_1d_vlan.sh          |  6 ++++--
 .../selftests/net/forwarding/mirror_gre_changes.sh       | 11 ++---------
 tools/testing/selftests/net/forwarding/mirror_gre_lib.sh |  2 +-
 .../net/forwarding/mirror_gre_vlan_bridge_1q.sh          |  6 ++++--
 5 files changed, 23 insertions(+), 18 deletions(-)

-- 
2.4.11



More information about the Linux-mlxsw mailing list