OSDN Git Service

i40e: Fix flow-type by setting GL_HASH_INSET registers
authorSlawomir Laba <slawomirx.laba@intel.com>
Mon, 24 Oct 2022 10:05:26 +0000 (03:05 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 25 Oct 2022 23:18:32 +0000 (16:18 -0700)
commit3b32c9932853e11d71f9db012d69e92e4669ba23
tree5d33090b60edea60e7b0db7421dbc33dcfffc94b
parent52424f974bc53c26ba3f00300a00e9de9afcd972
i40e: Fix flow-type by setting GL_HASH_INSET registers

Fix setting bits for specific flow_type for GLQF_HASH_INSET register.
In previous version all of the bits were set only in hena register, while
in inset only one bit was set. In order for this working correctly on all
types of cards these bits needs to be set correctly for both hena and inset
registers.

Fixes: eb0dd6e4a3b3 ("i40e: Allow RSS Hash set with less than four parameters")
Signed-off-by: Slawomir Laba <slawomirx.laba@intel.com>
Signed-off-by: Michal Jaron <michalx.jaron@intel.com>
Signed-off-by: Mateusz Palczewski <mateusz.palczewski@intel.com>
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://lore.kernel.org/r/20221024100526.1874914-3-jacob.e.keller@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/intel/i40e/i40e_ethtool.c