[Intel-wired-lan] [PATCH RESEND net v1 2/2] iavf: fix non-tunneled IPv6 UDP packet type and hashing
Romanowski, Rafal
rafal.romanowski at intel.com
Mon Mar 13 12:23:57 UTC 2023
> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
> Alexander Lobakin
> Sent: środa, 1 marca 2023 12:59
> To: Nguyen, Anthony L <anthony.l.nguyen at intel.com>
> Cc: Zaremba, Larysa <larysa.zaremba at intel.com>; netdev at vger.kernel.org;
> Brandeburg, Jesse <jesse.brandeburg at intel.com>; linux-
> kernel at vger.kernel.org; Eric Dumazet <edumazet at google.com>; Kubiak,
> Michal <michal.kubiak at intel.com>; intel-wired-lan at lists.osuosl.org; Jakub
> Kicinski <kuba at kernel.org>; Paolo Abeni <pabeni at redhat.com>; David S.
> Miller <davem at davemloft.net>
> Subject: [Intel-wired-lan] [PATCH RESEND net v1 2/2] iavf: fix non-tunneled
> IPv6 UDP packet type and hashing
>
> 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 at intel.com>
> Reviewed-by: Michal Kubiak <michal.kubiak at intel.com>
> Signed-off-by: Alexander Lobakin <aleksander.lobakin at intel.com>
> ---
> drivers/net/ethernet/intel/iavf/iavf_common.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/ethernet/intel/iavf/iavf_common.c
> b/drivers/net/ethernet/intel/iavf/iavf_common.c
> index 16c490965b61..dd11dbbd5551 100644
> --- a/drivers/net/ethernet/intel/iavf/iavf_common.c
> +++ b/drivers/net/ethernet/intel/iavf/iavf_common.c
Tested-by: Rafal Romanowski <rafal.romanowski at intel.com>
More information about the Intel-wired-lan
mailing list