]> 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)
commit95a80b0f19e4cf57f39d6c69ac5b06afb4a4710d
tree0513d96d1cf58fe9c854e7e26df5b68ddf98bdd4
parentfaec1f9a248cb1aea2268d606b9e867e87f35955
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: 864965e7c4d8 ("mlxsw: spectrum_router: Start using new IPv4 route notifications")
Fixes: d7e77c322f37 ("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