]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Allow programming link-local host routes
authorIdo Schimmel <idosch@mellanox.com>
Wed, 29 Jul 2020 09:26:43 +0000 (12:26 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Jul 2020 19:16:21 +0000 (12:16 -0700)
commitbe40c836ccc914fd4f54ca8a747ea64daa1ea55e
tree173bae20c5bcf51b11f9a239ccc42c9759aa8e84
parent108c81070c9f2db36575bd59020d8af39560d4de
mlxsw: spectrum_router: Allow programming link-local host routes

Cited commit added the ability to program link-local prefix routes to
the ASIC so that relevant packets are routed and trapped correctly.

However, host routes were not included in the change and thus not
programmed to the ASIC. This can result in packets being trapped via an
external route trap instead of a local route trap as in IPv4.

Fix this by programming all the link-local routes to the ASIC.

Fixes: 54c2d8af1908 ("mlxsw: spectrum_router: Allow programming link-local prefix routes")
Reported-by: Alex Veber <alexve@mellanox.com>
Tested-by: Alex Veber <alexve@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c