netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/8] mlxsw: Add support for nexthop objects
@ 2020-11-19 13:08 Ido Schimmel
  2020-11-19 13:08 ` [PATCH net-next 1/8] mlxsw: spectrum_router: " Ido Schimmel
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Ido Schimmel @ 2020-11-19 13:08 UTC (permalink / raw)
  To: netdev; +Cc: davem, kuba, dsahern, jiri, mlxsw, Ido Schimmel

From: Ido Schimmel <idosch@nvidia.com>

This patch set adds support for nexthop objects in mlxsw. Nexthop
objects are treated as another front-end for programming nexthops, in
addition to the existing IPv4 and IPv6 front-ends.

Patch #1 registers a listener to the nexthop notification chain and
parses the nexthop information into the existing mlxsw data structures
that are already used by the IPv4 and IPv6 front-ends. Blackhole
nexthops are currently rejected. Support will be added in a follow-up
patch set.

Patch #2 extends mlxsw to resolve its internal nexthop objects from the
nexthop identifier encoded in the FIB info of the notified routes.

Patch #3 finally removes the limitation of rejecting routes that use
nexthop objects.

Patch #4 adds a selftest.

Patches #5-#8 add generic forwarding selftests that can be used with
veth pairs or physical loopbacks.

Ido Schimmel (8):
  mlxsw: spectrum_router: Add support for nexthop objects
  mlxsw: spectrum_router: Enable resolution of nexthop groups from
    nexthop objects
  mlxsw: spectrum_router: Allow programming routes with nexthop objects
  selftests: mlxsw: Add nexthop objects configuration tests
  selftests: forwarding: Do not configure nexthop objects twice
  selftests: forwarding: Test IPv4 routes with IPv6 link-local nexthops
  selftests: forwarding: Add device-only nexthop test
  selftests: forwarding: Add multipath tunneling nexthop test

 .../ethernet/mellanox/mlxsw/spectrum_router.c | 498 +++++++++++++++++-
 .../ethernet/mellanox/mlxsw/spectrum_router.h |   1 +
 .../selftests/drivers/net/mlxsw/rtnetlink.sh  | 189 +++++++
 .../net/forwarding/gre_multipath_nh.sh        | 356 +++++++++++++
 .../net/forwarding/router_mpath_nh.sh         |  12 +-
 .../selftests/net/forwarding/router_nh.sh     | 160 ++++++
 6 files changed, 1201 insertions(+), 15 deletions(-)
 create mode 100755 tools/testing/selftests/net/forwarding/gre_multipath_nh.sh
 create mode 100755 tools/testing/selftests/net/forwarding/router_nh.sh

-- 
2.28.0


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-11-20 23:30 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-19 13:08 [PATCH net-next 0/8] mlxsw: Add support for nexthop objects Ido Schimmel
2020-11-19 13:08 ` [PATCH net-next 1/8] mlxsw: spectrum_router: " Ido Schimmel
2020-11-19 13:08 ` [PATCH net-next 2/8] mlxsw: spectrum_router: Enable resolution of nexthop groups from " Ido Schimmel
2020-11-19 13:08 ` [PATCH net-next 3/8] mlxsw: spectrum_router: Allow programming routes with " Ido Schimmel
2020-11-19 13:08 ` [PATCH net-next 4/8] selftests: mlxsw: Add nexthop objects configuration tests Ido Schimmel
2020-11-19 13:08 ` [PATCH net-next 5/8] selftests: forwarding: Do not configure nexthop objects twice Ido Schimmel
2020-11-19 13:08 ` [PATCH net-next 6/8] selftests: forwarding: Test IPv4 routes with IPv6 link-local nexthops Ido Schimmel
2020-11-19 13:08 ` [PATCH net-next 7/8] selftests: forwarding: Add device-only nexthop test Ido Schimmel
2020-11-19 13:08 ` [PATCH net-next 8/8] selftests: forwarding: Add multipath tunneling " Ido Schimmel
2020-11-20 23:30 ` [PATCH net-next 0/8] mlxsw: Add support for nexthop objects patchwork-bot+netdevbpf

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).