• Gal Pressman's avatar
    net/mlx5e: Fix update of hash function/key via ethtool · a100ff3e
    Gal Pressman authored
    Modifying TIR hash should change selected fields bitmask in addition to
    the function and key.
    
    Formerly, Only on ethool mlx5e_set_rxfh "ethtoo -X" we would not set this
    field resulting in zeroing of its value, which means no packet fields are
    used for RX RSS hash calculation thus causing all traffic to arrive in
    RQ[0].
    
    On driver load out of the box we don't have this issue, since the TIR
    hash is fully created from scratch.
    
    Tested:
    ethtool -X ethX hkey  <new key>
    ethtool -X ethX hfunc <new func>
    ethtool -X ethX equal <new indirection table>
    
    All cases are verified with TCP Multi-Stream traffic over IPv4 & IPv6.
    
    Fixes: bdfc028d ("net/mlx5e: Fix ethtool RX hash func configuration change")
    Signed-off-by: default avatarGal Pressman <galp@mellanox.com>
    Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
    a100ff3e
en.h 27.7 KB