mlxsw: spectrum_router: Offload ethernet nexthops when RIF is made
authorPetr Machata <petrm@nvidia.com>
Wed, 19 Jul 2023 11:01:27 +0000 (13:01 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Jul 2023 07:54:05 +0000 (08:54 +0100)
commitcfc01a92eaffdb9ac635f3aedc00ad5a6a2f437a
treeb382a16d5a4c81885adefb9327f415b77503af89
parentef59713c26b1c2a9b0b3a8c481b23335ce6d7183
mlxsw: spectrum_router: Offload ethernet nexthops when RIF is made

As RIF is created, refresh each netxhop group tracked at the CRIF for which
the RIF was created.

Note that nothing needs to be done for IPIP nexthops. The RIF for these is
either available from the get-go, or will never be available, so no after
the fact offloading needs to be done.

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