iavf: fix inverted Rx hash condition leading to disabled hash
stable inclusion from stable-v5.10.177 commit 15dcb57eba09ca3f84033af1e961dde24e2dcb14 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I88YNP Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=15dcb57eba09ca3f84033af1e961dde24e2dcb14 -------------------------------- [ Upstream commit 32d57f66 ] Condition, which checks whether the netdev has hashing enabled is inverted. Basically, the tagged commit effectively disabled passing flow hash from descriptor to skb, unless user *disables* it via Ethtool. Commit a876c3ba ("i40e/i40evf: properly report Rx packet hash") fixed this problem, but only for i40e. Invert the condition now in iavf and unblock passing hash to skbs again. Fixes: 857942fd ("i40e: Fix Rx hash reported to the stack by our driver") Reviewed-by:Larysa Zaremba <larysa.zaremba@intel.com> Reviewed-by:
Michal Kubiak <michal.kubiak@intel.com> Signed-off-by:
Alexander Lobakin <aleksander.lobakin@intel.com> Tested-by:
Rafal Romanowski <rafal.romanowski@intel.com> Reviewed-by:
Leon Romanovsky <leonro@nvidia.com> Signed-off-by:
Tony Nguyen <anthony.l.nguyen@intel.com> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com> (cherry picked from commit 9e403a2e)
Loading
Please sign in to comment