]> 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)
commit214e9bacd246bd51f5260fc36aaa794022a3c62d
treeede06b23136956fa0fc0efaec4291f13203949c9
parentbb64de6efc923d078a04a58c34b67a8625004ab4
mlxsw: spectrum_router: Align with new route replace logic

Commit 9c346b02c450 ("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: 9c346b02c450 ("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