]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Prevent incorrect replacement of local table routes
authorIdo Schimmel <idosch@mellanox.com>
Fri, 7 Feb 2020 17:26:24 +0000 (19:26 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Feb 2020 17:47:01 +0000 (18:47 +0100)
commitced74e4edaa3b661616db500bc9cd1db541f4b84
tree0513d96d1cf58fe9c854e7e26df5b68ddf98bdd4
parent45e52680ffc13d56e4a107e5b036557cc7e0355d
mlxsw: spectrum_router: Prevent incorrect replacement of local table routes

The driver uses the same table to represent both the main and local
routing tables. Prevent routes in the main table from replacing routes
in the local table to reflect the fact that the local table is consulted
first during lookup.

Fixes: ad69caaa7d63 ("mlxsw: spectrum_router: Start using new IPv4 route notifications")
Fixes: 6dc4ca47054a ("mlxsw: spectrum_router: Start using new IPv6 route notifications")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c