]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Only clear offload indication from valid IPv6 FIB info
authorIdo Schimmel <idosch@nvidia.com>
Tue, 17 Nov 2020 17:47:02 +0000 (19:47 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 18 Nov 2020 19:51:18 +0000 (11:51 -0800)
commit81966d01efe3fbc718d5552532f15e455766a27b
tree1eda8c6ebbd4c645d8a9f390d504b69cf3e724c5
parenta086b27b245d399027af5e0f663307677a35fe8d
mlxsw: spectrum_router: Only clear offload indication from valid IPv6 FIB info

When the IPv6 FIB info has a nexthop object, the nexthop offload
indication is set on the nexthop object and not on the FIB info itself.

Therefore, do not try to clear the offload indication from the FIB info
when it has a nexthop object.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c