netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Petr Machata <petrm@mellanox.com>
To: netdev@vger.kernel.org
Cc: davem@davemloft.net, linux-mlxsw@lists.ozlabs.org
Subject: [PATCH net-next 0/7] selftests: Add tests for mirroring to gretap
Date: Fri, 27 Apr 2018 01:17:05 +0200	[thread overview]
Message-ID: <cover.1524784510.git.petrm@mellanox.com> (raw)

This suite tests GRE-encapsulated mirroring. The general topology that
most of the tests use is as follows, but each test defines details of
the topology based on its needs, and some tests actually use a somewhat
different topology.

+---------------------+                      +---------------------+
| H1                  |                      |                  H2 |
|     + $h1           |                      |           $h2 +     |
+-----|---------------+                      +---------------|-----+
      |                                                      |
+-----|------------------------------------------------------|-----+
| SW  o---> mirror                                           |     |
| +---|------------------------------------------------------|---+ |
| |   + $swp1               BR                         $swp2 +   | |
| +--------------------------------------------------------------+ |
|                                                                  |
|     + $swp3          + gt6 (ip6gretap)    + gt4 (gretap)         |
+-----|----------------:--------------------:----------------------+
      |                :                    :
+-----|----------------:--------------------:----------------------+
|     + $h3            + h3-gt6(ip6gretap)  + h3-gt4 (gretap)      |
| H3                                                               |
+------------------------------------------------------------------+

The following axes of configuration space are tested:

- ingress and egress mirroring
- mirroring triggered by matchall and flower
- mirroring to ipgretap and ip6gretap
- remote tunnel reachable directly or through a next-hop route
- skip_sw as well as skip_hw configurations

Apart from basic tests with the above mentioned features, the following
tests are included:

- handling of changes to neighbors pertinent to routing decisions in
  mirrored underlay
- handling of configuration changes at the mirrored-to tunnel (endpoint
  addresses, upness)

A suite of mlxsw-specific tests will be part of a separate submission
through linux-mlxsw patch queue.

Petr Machata (7):
  selftests: forwarding: Add libs for gretap mirror testing
  selftests: forwarding: Add test for mirror to gretap
  selftests: forwarding: Test gretap mirror with next-hop remote
  selftests: forwarding: Test mirror to gretap w/ bound dev
  selftests: forwarding: Test flower mirror to gretap
  selftests: forwarding: Test neighbor updates when mirroring to gretap
  selftests: forwarding: Test changes in mirror-to-gretap

 tools/testing/selftests/net/forwarding/lib.sh      |  96 ++++++++++
 .../testing/selftests/net/forwarding/mirror_gre.sh | 139 ++++++++++++++
 .../selftests/net/forwarding/mirror_gre_bound.sh   | 213 +++++++++++++++++++++
 .../selftests/net/forwarding/mirror_gre_changes.sh | 194 +++++++++++++++++++
 .../selftests/net/forwarding/mirror_gre_flower.sh  | 116 +++++++++++
 .../selftests/net/forwarding/mirror_gre_lib.sh     |  85 ++++++++
 .../selftests/net/forwarding/mirror_gre_neigh.sh   | 101 ++++++++++
 .../selftests/net/forwarding/mirror_gre_nh.sh      | 117 +++++++++++
 .../net/forwarding/mirror_gre_topo_lib.sh          | 129 +++++++++++++
 .../testing/selftests/net/forwarding/mirror_lib.sh |  40 ++++
 10 files changed, 1230 insertions(+)
 create mode 100755 tools/testing/selftests/net/forwarding/mirror_gre.sh
 create mode 100755 tools/testing/selftests/net/forwarding/mirror_gre_bound.sh
 create mode 100755 tools/testing/selftests/net/forwarding/mirror_gre_changes.sh
 create mode 100755 tools/testing/selftests/net/forwarding/mirror_gre_flower.sh
 create mode 100644 tools/testing/selftests/net/forwarding/mirror_gre_lib.sh
 create mode 100755 tools/testing/selftests/net/forwarding/mirror_gre_neigh.sh
 create mode 100755 tools/testing/selftests/net/forwarding/mirror_gre_nh.sh
 create mode 100644 tools/testing/selftests/net/forwarding/mirror_gre_topo_lib.sh
 create mode 100644 tools/testing/selftests/net/forwarding/mirror_lib.sh

-- 
2.4.11

             reply	other threads:[~2018-04-26 23:17 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-26 23:17 Petr Machata [this message]
2018-04-26 23:17 ` [PATCH net-next 1/7] selftests: forwarding: Add libs for gretap mirror testing Petr Machata
2018-04-26 23:18 ` [PATCH net-next 2/7] selftests: forwarding: Add test for mirror to gretap Petr Machata
2018-04-26 23:19 ` [PATCH net-next 3/7] selftests: forwarding: Test gretap mirror with next-hop remote Petr Machata
2018-04-26 23:19 ` [PATCH net-next 4/7] selftests: forwarding: Test mirror to gretap w/ bound dev Petr Machata
2018-04-26 23:20 ` [PATCH net-next 5/7] selftests: forwarding: Test flower mirror to gretap Petr Machata
2018-04-26 23:21 ` [PATCH net-next 6/7] selftests: forwarding: Test neighbor updates when mirroring " Petr Machata
2018-04-26 23:22 ` [PATCH net-next 7/7] selftests: forwarding: Test changes in mirror-to-gretap Petr Machata
2018-04-27 18:58 ` [PATCH net-next 0/7] selftests: Add tests for mirroring to gretap David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1524784510.git.petrm@mellanox.com \
    --to=petrm@mellanox.com \
    --cc=davem@davemloft.net \
    --cc=linux-mlxsw@lists.ozlabs.org \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).