mlxsw: spectrum_router: Align with new route replace logic
authorIdo Schimmel <idosch@mellanox.com>
Fri, 15 Jun 2018 13:23:37 +0000 (16:23 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Jun 2018 16:11:16 +0000 (09:11 -0700)
commitce45bded6435aa7d1e34be3b47e9c04c72f85742
treeede06b23136956fa0fc0efaec4291f13203949c9
parent53b562df8c203e189fc69f7af0d8668e8dec5a8a
mlxsw: spectrum_router: Align with new route replace logic

Commit f34436a43092 ("net/ipv6: Simplify route replace and appending
into multipath route") changed the IPv6 route replace logic so that the
first matching route (i.e., same metric) is replaced.

Have mlxsw replace the first matching route as well.

Fixes: f34436a43092 ("net/ipv6: Simplify route replace and appending into multipath route")
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