diff options
author | Ido Schimmel <idosch@mellanox.com> | 2018-02-17 00:30:44 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-08 22:41:16 -0800 |
commit | abd7663b5d1c07106b65361e6f2effd1c0313e7e (patch) | |
tree | 54e9a1dbe49c110c0fdf200e456c5d9d2b7737d5 /net/netlink | |
parent | ebadf888288c9e069b0141a4f00784e7245c5e28 (diff) | |
download | linux-stable-abd7663b5d1c07106b65361e6f2effd1c0313e7e.tar.gz linux-stable-abd7663b5d1c07106b65361e6f2effd1c0313e7e.tar.bz2 linux-stable-abd7663b5d1c07106b65361e6f2effd1c0313e7e.zip |
mlxsw: spectrum_router: Do not unconditionally clear route offload indication
[ Upstream commit d1c95af366961101819f07e3c64d44f3be7f0367 ]
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/netlink')
0 files changed, 0 insertions, 0 deletions