]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2300bdceadbcde3e5256745dfbc521107aa12c0b
treeede06b23136956fa0fc0efaec4291f13203949c9
parent177b1b6e1a6ec61712dc5ac024c9e126ba343995
mlxsw: spectrum_router: Align with new route replace logic

Commit 2146678a953c ("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: 2146678a953c ("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