diff options
author | Elad Raz <eladr@mellanox.com> | 2016-09-19 02:28:24 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-20 04:32:50 -0400 |
commit | 18c2d2c113eb330d260277350d09aae454e80177 (patch) | |
tree | 1db303aaf482bb70f8f706536787be0ba0b431c7 | |
parent | 878786d95e07ce2f5fb6e3cd8a6c2ed320339196 (diff) |
mlxsw: Change the RX LAG hash function from XOR to CRC
Change the RX hash function from XOR to CRC in order to have better
distribution of the traffic.
Signed-off-by: Elad Raz <eladr@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/reg.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/reg.h b/drivers/net/ethernet/mellanox/mlxsw/reg.h index 4e2354ca0e4a..6460c7256f2b 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/reg.h +++ b/drivers/net/ethernet/mellanox/mlxsw/reg.h | |||
@@ -1392,7 +1392,7 @@ static inline void mlxsw_reg_slcr_pack(char *payload, u16 lag_hash) | |||
1392 | { | 1392 | { |
1393 | MLXSW_REG_ZERO(slcr, payload); | 1393 | MLXSW_REG_ZERO(slcr, payload); |
1394 | mlxsw_reg_slcr_pp_set(payload, MLXSW_REG_SLCR_PP_GLOBAL); | 1394 | mlxsw_reg_slcr_pp_set(payload, MLXSW_REG_SLCR_PP_GLOBAL); |
1395 | mlxsw_reg_slcr_type_set(payload, MLXSW_REG_SLCR_TYPE_XOR); | 1395 | mlxsw_reg_slcr_type_set(payload, MLXSW_REG_SLCR_TYPE_CRC); |
1396 | mlxsw_reg_slcr_lag_hash_set(payload, lag_hash); | 1396 | mlxsw_reg_slcr_lag_hash_set(payload, lag_hash); |
1397 | } | 1397 | } |
1398 | 1398 | ||