]> www.infradead.org Git - nvme.git/commit
selftests: mirror_gre_lag_lacp: Check counters at tunnel
authorPetr Machata <petrm@nvidia.com>
Thu, 27 Jun 2024 14:48:41 +0000 (16:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Jun 2024 09:55:36 +0000 (10:55 +0100)
commit95e7b860e16dbdfb07a0f36c9f954764799a3632
tree989280ad5e6104d5de4090f377884e6a28f259a6
parent9b5d5f272654ca4b97f39b6ef809e4edef794fdc
selftests: mirror_gre_lag_lacp: Check counters at tunnel

The test works by sending packets through a tunnel, whence they are
forwarded to a LAG. One of the LAG children is removed from the LAG prior
to the exercise, and the test then counts how many packets pass through the
other one. The issue with this is that it counts all packets, not just the
encapsulated ones.

So instead add a second gretap endpoint to receive the sent packets, and
check reception counters there.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Danielle Ratson <danieller@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/mirror_gre_lag_lacp.sh