mlxsw: spectrum_router: Add support for resilient nexthop groups
authorIdo Schimmel <idosch@nvidia.com>
Wed, 24 Mar 2021 20:14:15 +0000 (22:14 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Mar 2021 23:34:57 +0000 (16:34 -0700)
commitc6fc65f48072c9c6144ea2d145c011317bd03441
tree44b1c49e969a0a17f7383cd30ab9857e82965b44
parent3c85a8b81cc89c712c4f44cb1a4d5547e472fb1f
mlxsw: spectrum_router: Add support for resilient nexthop groups

Parse the configuration of resilient nexthop groups to existing mlxsw
data structures. Unlike non-resilient groups, nexthops without a valid
MAC or router interface (RIF) are programmed with a trap action instead
of not being programmed at all.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c