diff options
author | Ido Schimmel <idosch@mellanox.com> | 2018-02-17 00:30:44 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-02-19 11:21:08 -0500 |
commit | d1c95af366961101819f07e3c64d44f3be7f0367 (patch) | |
tree | c67cef13b1f10139aa1e4bc39631cc0c0555b894 /net/tipc/net.c | |
parent | cae69256fe88028d0d0f77a1def0ab82fcfa4d37 (diff) |
mlxsw: spectrum_router: Do not unconditionally clear route offload indication
When mlxsw replaces (or deletes) a route it removes the offload
indication from the replaced route. This is problematic for IPv4 routes,
as the offload indication is stored in the fib_info which is usually
shared between multiple routes.
Instead of unconditionally clearing the offload indication, only clear
it if no other route is using the fib_info.
Fixes: 3984d1a89fe7 ("mlxsw: spectrum_router: Provide offload indication using nexthop flags")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reported-by: Alexander Petrovskiy <alexpe@mellanox.com>
Tested-by: Alexander Petrovskiy <alexpe@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/net.c')
0 files changed, 0 insertions, 0 deletions