All of lore.kernel.org
 help / color / mirror / Atom feed
From: Petr Machata <petrm@nvidia.com>
To: "David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	<netdev@vger.kernel.org>
Cc: Ido Schimmel <idosch@nvidia.com>, Petr Machata <petrm@nvidia.com>,
	"Amit Cohen" <amcohen@nvidia.com>, <mlxsw@nvidia.com>
Subject: [PATCH net 0/6] mlxsw: Add Spectrum-1 ip6gre support
Date: Wed, 7 Dec 2022 13:36:41 +0100	[thread overview]
Message-ID: <cover.1670414573.git.petrm@nvidia.com> (raw)

Ido Schimmel writes:

Currently, mlxsw only supports ip6gre offload on Spectrum-2 and newer
ASICs. Spectrum-1 can also offload ip6gre tunnels, but it needs double
entry router interfaces (RIFs) for the RIFs representing these tunnels.
In addition, the RIF index needs to be even. This is handled in
patches #1-#3.

The implementation can otherwise be shared between all Spectrum
generations. This is handled in patches #4-#5.

Patch #6 moves a mlxsw ip6gre selftest to a shared directory, as ip6gre
is no longer only supported on Spectrum-2 and newer ASICs.

This work is motivated by users that require multiple GRE tunnels that
all share the same underlay VRF. Currently, mlxsw only supports
decapsulation based on the underlay destination IP (i.e., not taking the
GRE key into account), so users need to configure these tunnels with
different source IPs and IPv6 addresses are easier to spare than IPv4.

Tested using existing ip6gre forwarding selftests.

Ido Schimmel (6):
  mlxsw: spectrum_router: Use gen_pool for RIF index allocation
  mlxsw: spectrum_router: Parametrize RIF allocation size
  mlxsw: spectrum_router: Add support for double entry RIFs
  mlxsw: spectrum_ipip: Rename Spectrum-2 ip6gre operations
  mlxsw: spectrum_ipip: Add Spectrum-1 ip6gre support
  selftests: mlxsw: Move IPv6 decap_error test to shared directory

 .../ethernet/mellanox/mlxsw/spectrum_ipip.c   | 160 +++++-------------
 .../ethernet/mellanox/mlxsw/spectrum_ipip.h   |   1 +
 .../ethernet/mellanox/mlxsw/spectrum_router.c | 102 +++++++++--
 .../ethernet/mellanox/mlxsw/spectrum_router.h |   4 +
 .../devlink_trap_tunnel_ipip6.sh              |   2 +-
 5 files changed, 138 insertions(+), 131 deletions(-)
 rename tools/testing/selftests/drivers/net/mlxsw/{spectrum-2 => }/devlink_trap_tunnel_ipip6.sh (99%)

-- 
2.35.3


             reply	other threads:[~2022-12-07 12:37 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-07 12:36 Petr Machata [this message]
2022-12-07 12:36 ` [PATCH net 1/6] mlxsw: spectrum_router: Use gen_pool for RIF index allocation Petr Machata
2022-12-07 12:36 ` [PATCH net 2/6] mlxsw: spectrum_router: Parametrize RIF allocation size Petr Machata
2022-12-07 12:36 ` [PATCH net 3/6] mlxsw: spectrum_router: Add support for double entry RIFs Petr Machata
2022-12-07 12:36 ` [PATCH net 4/6] mlxsw: spectrum_ipip: Rename Spectrum-2 ip6gre operations Petr Machata
2022-12-07 12:36 ` [PATCH net 5/6] mlxsw: spectrum_ipip: Add Spectrum-1 ip6gre support Petr Machata
2022-12-07 12:36 ` [PATCH net 6/6] selftests: mlxsw: Move IPv6 decap_error test to shared directory Petr Machata
2022-12-07 12:48 ` [PATCH net 0/6] mlxsw: Add Spectrum-1 ip6gre support Petr Machata
2022-12-09  2:50 ` patchwork-bot+netdevbpf

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.1670414573.git.petrm@nvidia.com \
    --to=petrm@nvidia.com \
    --cc=amcohen@nvidia.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=idosch@nvidia.com \
    --cc=kuba@kernel.org \
    --cc=mlxsw@nvidia.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.