iavf: fix inverted Rx hash condition leading to disabled hash
authorAlexander Lobakin <aleksander.lobakin@intel.com>
Wed, 1 Mar 2023 11:59:07 +0000 (12:59 +0100)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 16 Mar 2023 15:47:10 +0000 (08:47 -0700)
commit32d57f667f871bc5a8babbe27ea4c5e668ee0ea8
tree4acd169f91b9d07928a2e1ce96549c13dbcdad86
parentcd356010ce4c69ac7e1a40586112df24d22c6a4b
iavf: fix inverted Rx hash condition leading to disabled hash

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 a876c3ba59a6 ("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: 857942fd1aa1 ("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>
drivers/net/ethernet/intel/iavf/iavf_txrx.c