mlxsw: spectrum_router: Provide offload indication using nexthop flags
authorIdo Schimmel <idosch@mellanox.com>
Wed, 2 Aug 2017 07:56:03 +0000 (09:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Aug 2017 00:00:23 +0000 (17:00 -0700)
commit3984d1a89fe7cba04cdcc6084dc1a2024f0190b6
treea74d30aae7842ee5014de988cddcd630aa056905
parent63e701c15c98741fc8df50eb0315991e6d8040dc
mlxsw: spectrum_router: Provide offload indication using nexthop flags

In a similar fashion to previous patch, use the nexthop flags to provide
offload indication instead of the FIB info's flags.

In case a nexthop in a multipath route can't be offloaded (gateway's MAC
can't be resolved, for example), then its offload flag isn't set.

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