]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Refresh offload indication upon group refresh
authorIdo Schimmel <idosch@mellanox.com>
Wed, 2 Aug 2017 07:56:05 +0000 (09:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Aug 2017 00:00:24 +0000 (17:00 -0700)
commitb81313d94ec986ccfd8668b0e7d0cec3d976d30a
treefca97d60cfa49b97ec6a40298a94413032add271
parent5106c37f54609504347a96d7e80a113cbe543a55
mlxsw: spectrum_router: Refresh offload indication upon group refresh

Now that we provide offload indication using the nexthop's flags we must
refresh the offload indication whenever the offload state within the
group changes.

This didn't matter until now, as offload indication was provided using
the FIB info flags and multipath routes were marked as offloaded as long
as one of the nexthops was offloaded.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Tested-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c