mlxsw: spectrum_router: Add support for custom multipath hash policy
authorIdo Schimmel <idosch@nvidia.com>
Wed, 19 May 2021 12:08:24 +0000 (15:08 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 May 2021 19:47:47 +0000 (12:47 -0700)
commitdaeabf89eb892cf827608177ecae7ca9389c195a
tree8eade06b5f6efcced8c869d2f66f7f9c9b0a54b8
parent01848e05f8bbff2d799073b307fe2eb42bee764b
mlxsw: spectrum_router: Add support for custom multipath hash policy

When this policy is set, only enable the packet fields that were enabled
by user space for multipath hash computation.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c