]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit62a921d2d2cfd300e395baddb6c801b87776f0fa
treeb30c5a284a6b26b218868c52dc1e2bed5e0ccbbf
parentedef79fe6c9dafe92f0b2c8e0a48fa4e7cda2075
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