]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit889e698f2f91c5eaefd9858860a32e381d1313d0
tree4f593ce4cdfce69a75ff40f8cd8e306f11859166
parentf451da43603f32481888a70c762f5bf3c215a74a
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