mlxsw: spectrum_router: Store weight in nexthop struct
authorIdo Schimmel <idosch@mellanox.com>
Sun, 22 Oct 2017 21:11:46 +0000 (23:11 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Oct 2017 04:23:06 +0000 (05:23 +0100)
commit408bd946bfee69ec99937bd0f9ed9dcd2d19705b
tree4f593ce4cdfce69a75ff40f8cd8e306f11859166
parentd672aec45fd4a1e060109fbce6739ef91c3bd135
mlxsw: spectrum_router: Store weight in nexthop struct

As the first step towards non-equal-cost multi-path support, store each
nexthop's weight.

For IPv6 nexthops always set the weight to 1, as it only supports ECMP.

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