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)
commit0508ff8934f40b52a78313049b96eec29a46ba49
tree0513d96d1cf58fe9c854e7e26df5b68ddf98bdd4
parentf8c2afa66d5397b0b9293c4347dac6dabb327685
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: b6a1d871d37a ("mlxsw: spectrum_router: Start using new IPv4 route notifications")
Fixes: dacad7b34b59 ("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