]> git.karo-electronics.de Git - linux-beck.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Feb 2017 23:25:38 +0000 (15:25 -0800)
commite68f0dbb6bb0f0487a8ae2a117ae1950b6656f1a
tree76d38474f28a748d9f4aa20e1a907216a8149cb7
parent1a1981ef15a5bb52c46ab109a63cf1d4ddaee992
net/mlx5e: Modify TIRs hash only when it's needed

commit 1d3398facd08a7fd4202f269317a95668eb880b9 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c