[PATCH net-next mlxsw 0/5] Multipath tests for tunnel devices

Petr Machata petrm at mellanox.com
Fri Jun 15 08:14:54 AEST 2018

This patchset adds a test for ECMP and weighted ECMP between two GRE

In patches #1 and #2, the function multipath_eval() is first moved from
router_multipath.sh to lib.sh for ease of reuse, and then fixed up.

In patch #3, the function tc_rule_stats_get() is parameterized to be
useful for egress rules as well.

In patch #4, a new function __simple_if_init() is extracted from
simple_if_init(). This covers the logic that needs to be done for the
usual interface: VRF migration, upping and installation of IP addresses.

Patch #5 then adds the test itself.

Petr Machata (5):
  selftests: forwarding: Move multipath_eval() to lib.sh
  selftests: forwarding: multipath_eval(): Improve style
  selftests: forwarding: tc_rule_stats_get: Parameterize direction
  selftests: forwarding: lib: Extract interface-init functions
  selftests: forwarding: Test multipath tunneling

 .../selftests/net/forwarding/gre_multipath.sh      | 296 +++++++++++++++++++++
 tools/testing/selftests/net/forwarding/lib.sh      |  78 +++++-
 .../selftests/net/forwarding/router_multipath.sh   |  39 ---
 3 files changed, 366 insertions(+), 47 deletions(-)
 create mode 100755 tools/testing/selftests/net/forwarding/gre_multipath.sh


More information about the Linux-mlxsw mailing list