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)
commit77d964e66cfad007db14077fc952ce13bdaa2733
treefca97d60cfa49b97ec6a40298a94413032add271
parent1353ee707362478527d54cd0b25d3ac17c47168d
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