]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
iavf: fix non-tunneled IPv6 UDP packet type and hashing
authorAlexander Lobakin <aleksander.lobakin@intel.com>
Wed, 1 Mar 2023 11:59:08 +0000 (12:59 +0100)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Wed, 17 May 2023 11:33:27 +0000 (13:33 +0200)
commitecac3017961b08c46d939350b96bf52f509e0818
tree83a0c18a533305350eab45d9ecb58cadd1bdd6a8
parent5b9937771ddb89499f3bf9b8278d8c87b18f9986
iavf: fix non-tunneled IPv6 UDP packet type and hashing

BugLink: https://bugs.launchpad.net/bugs/2016877
[ Upstream commit de58647b4301fe181f9c38e8b46f7021584ae427 ]

Currently, IAVF's decode_rx_desc_ptype() correctly reports payload type
of L4 for IPv4 UDP packets and IPv{4,6} TCP, but only L3 for IPv6 UDP.
Originally, i40e, ice and iavf were affected.
Commit 73df8c9e3e3d ("i40e: Correct UDP packet header for non_tunnel-ipv6")
fixed that in i40e, then
commit 638a0c8c8861 ("ice: fix incorrect payload indicator on PTYPE")
fixed that for ice.
IPv6 UDP is L4 obviously. Fix it and make iavf report correct L4 hash
type for such packets, so that the stack won't calculate it on CPU when
needs it.

Fixes: 206812b5fccb ("i40e/i40evf: i40e implementation for skb_set_hash")
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: Paolo Pisati <paolo.pisati@canonical.com>
drivers/net/ethernet/intel/iavf/iavf_common.c