mlxsw: spectrum_outer: Factor out helper for common outer fields
authorIdo Schimmel <idosch@nvidia.com>
Wed, 19 May 2021 12:08:22 +0000 (15:08 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 May 2021 19:47:47 +0000 (12:47 -0700)
commitb7b8f435ea3b33ba7067f992c5b85a62f24d19ed
tree20a316c8c0ff2829cfe04f1a51e38740970fc615
parent28bc824807a5cb95edb46807c210dfff37a3a0b3
mlxsw: spectrum_outer: Factor out helper for common outer fields

Outer IPv4 and IPv6 addresses are used by multiple multipath hash
policies. Factor out helpers that set these fields to increase code
sharing between different policies.

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