mlxsw: spectrum: Seed LAG hash function
authorIdo Schimmel <idosch@mellanox.com>
Thu, 11 Oct 2018 07:47:57 +0000 (07:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Oct 2018 17:08:22 +0000 (10:08 -0700)
commitbeda7f72c36ab4f156e14d785a4bc50ddc2df657
treeb30c5a284a6b26b218868c52dc1e2bed5e0ccbbf
parenta682a3024fe1d21653876fe2f0b231d011f6a72d
mlxsw: spectrum: Seed LAG hash function

Currently, the seed of the LAG hash function is always set to 0, which
means it is identical across all switches. Instead, use a random number.

This is especially important now that VxLAN is supported, as the LAG
hash function is used to calculate the UDP source port of the
encapsulated packet.

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