]> 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)
commit686abc09055b2315a6cfef51193058a0fa028a6b
tree173bae20c5bcf51b11f9a239ccc42c9759aa8e84
parentad271b75692d29c797f53a44ce90d58aa35f5e68
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: 27c57f54d9fc ("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