net/mlx5e: Modify TIRs hash only when it's needed
authorGal Pressman <galp@mellanox.com>
Wed, 11 Jan 2017 12:32:26 +0000 (14:32 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Sun, 29 Jan 2017 21:29:32 +0000 (23:29 +0200)
commit1d3398facd08a7fd4202f269317a95668eb880b9
treea19e3d7f906e024711ccf35004f702d1cc460d4a
parent3e621b19b0bb1f5bea34f1fbc5fb5629191eda2b
net/mlx5e: Modify TIRs hash only when it's needed

We don't need to modify our TIRs unless the user requested a change in
the hash function/key, for example when changing indirection only.

Tested:
 # Modify TIRs hash is needed
ethtool -X ethX hkey  <new key>
ethtool -X ethX hfunc <new func>

 # Modify TIRs hash is not needed
ethtool -X ethX equal <new indirection table>

All cases are verified with TCP Multi-Stream traffic over IPv4 & IPv6.

Fixes: bdfc028de1b3 ("net/mlx5e: Fix ethtool RX hash func configuration change")
Signed-off-by: Gal Pressman <galp@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c