net/iavf: fix SCTP tunnel packet forwarding issue
PATCH 1/1 net/iavf: fix SCTP tunnel packet forwarding issue
The SCTP tunnel packets cannot be forwarded in AVX2 mode.
As 2 features are developed in parallel, 5712bf9d6e14 ("net/iavf: add Tx AVX2 offload path") doesn't consider the impact of 4f8259df563a ("net/iavf: enable Tx outer checksum offload on AVX512"). So, the wrong TX path is selected.
--- drivers/net/iavf/iavf_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/iavf/iavf_rxtx.c +1 -1
@@ -3919,7 +3919,7 @@ struct iavf_tx_context_desc_qws { check_ret =iavf_tx_vec_dev_check (dev); -if (check_ret >=0 && +if ((check_ret ==IAVF_VECTOR_PATH || check_ret ==IAVF_VECTOR_OFFLOAD_PATH ) &&rte_vect_get_max_simd_bitwidth () >=RTE_VECT_SIMD_128 ) {/* SSE not support offload path yet. */ if (check_ret ==IAVF_VECTOR_PATH ) {
Signature · 1 line
1.8.3.1
Quoted 14 lines
-----Original Message-----
From: Wenzhuo Lu <[email protected]>
Sent: Wednesday, June 21, 2023 9:15 AM
To: [email protected]
Cc: Lu, Wenzhuo <[email protected]>
Subject: [PATCH] net/iavf: fix SCTP tunnel packet forwarding issueThe SCTP tunnel packets cannot be forwarded in AVX2 mode.
As 2 features are developed in parallel,
5712bf9d6e14("net/iavf: add Tx AVX2 offload path") doesn't consider the impact of4f8259df563a("net/iavf: enable Tx outer checksum offload on AVX512"). So, the wrong TX path is selected.
Quoted 4 lines
Fixes 5712bf9d6e14 ("net/iavf: add Tx AVX2 offload path")Signed-off-by Wenzhuo Lu <[email protected]>---
Zhang, Qi Z
AppliedQuoted 23 lines
-----Original Message-----
From: Jiale, SongX <[email protected]>
Sent: Wednesday, June 28, 2023 3:33 PM
To: Lu, Wenzhuo <[email protected]>; [email protected]
Cc: Lu, Wenzhuo <[email protected]>
Subject: RE: [PATCH] net/iavf: fix SCTP tunnel packet forwarding issueQuoted 14 lines
-----Original Message-----
From: Wenzhuo Lu <[email protected]>
Sent: Wednesday, June 21, 2023 9:15 AM
To: [email protected]
Cc: Lu, Wenzhuo <[email protected]>
Subject: [PATCH] net/iavf: fix SCTP tunnel packet forwarding issueThe SCTP tunnel packets cannot be forwarded in AVX2 mode.
As 2 features are developed in parallel,
5712bf9d6e14("net/iavf: add Tx AVX2 offload path") doesn't consider the impact of4f8259df563a("net/iavf: enable Tx outer checksum offload on AVX512"). So, the wrong TX path is selected.
Quoted 5 lines
Quoted 4 lines
Fixes 5712bf9d6e14 ("net/iavf: add Tx AVX2 offload path")Signed-off-by Wenzhuo Lu <[email protected]>---
Tested-by Song Jiale <[email protected]>
Applied to dpdk-next-net-intel.
Thanks
Qi
Hi Qi,
Quoted 34 lines
-----Original Message-----
From: Zhang, Qi Z <[email protected]>
Sent: Thursday, June 29, 2023 4:58 PM
To: Jiale, SongX <[email protected]>; Lu, Wenzhuo <[email protected]>; [email protected]
Cc: Lu, Wenzhuo <[email protected]>
Subject: RE: [PATCH] net/iavf: fix SCTP tunnel packet forwarding issueQuoted 19 lines
-----Original Message-----
From: Jiale, SongX <[email protected]>
Sent: Wednesday, June 28, 2023 3:33 PM
To: Lu, Wenzhuo <[email protected]>; [email protected]
Cc: Lu, Wenzhuo <[email protected]>
Subject: RE: [PATCH] net/iavf: fix SCTP tunnel packet forwarding issueQuoted 12 lines
-----Original Message-----
From: Wenzhuo Lu <[email protected]>
Sent: Wednesday, June 21, 2023 9:15 AM
To: [email protected]
Cc: Lu, Wenzhuo <[email protected]>
Subject: [PATCH] net/iavf: fix SCTP tunnel packet forwarding issueThe SCTP tunnel packets cannot be forwarded in AVX2 mode.
As 2 features are developed in parallel,
5712bf9d6e14("net/iavf: add Tx AVX2 offload path") doesn't consider the impact of4f8259df563a("net/iavf: enable Tx outer checksum offload onAVX512").
Quoted 4 lines
Quoted 4 lines
So, the wrong TX path is selected.
Fixes 5712bf9d6e14 ("net/iavf: add Tx AVX2 offload path")
Quoted 8 lines
Quoted 3 lines
Quoted 2 lines
Signed-off-by Wenzhuo Lu <[email protected]>---
Tested-by Song Jiale <[email protected]>Applied to dpdk-next-net-intel.
Thanks
Qi
Sorry, this fix is not good because of some misunderstanding. Would you like helping to revert it? We'll send a new one to fix the issue. Thanks.
Quoted 48 lines
-----Original Message-----
From: Lu, Wenzhuo <[email protected]>
Sent: Thursday, July 6, 2023 9:27 AM
To: Zhang, Qi Z <[email protected]>; Jiale, SongX <[email protected]>; [email protected]
Subject: RE: [PATCH] net/iavf: fix SCTP tunnel packet forwarding issueHi Qi,
Quoted 37 lines
-----Original Message-----
From: Zhang, Qi Z <[email protected]>
Sent: Thursday, June 29, 2023 4:58 PM
To: Jiale, SongX <[email protected]>; Lu, Wenzhuo <[email protected]>; [email protected]
Cc: Lu, Wenzhuo <[email protected]>
Subject: RE: [PATCH] net/iavf: fix SCTP tunnel packet forwarding issueQuoted 20 lines
-----Original Message-----
From: Jiale, SongX <[email protected]>
Sent: Wednesday, June 28, 2023 3:33 PM
To: Lu, Wenzhuo <[email protected]>; [email protected]
Cc: Lu, Wenzhuo <[email protected]>
Subject: RE: [PATCH] net/iavf: fix SCTP tunnel packet forwarding issueQuoted 12 lines
-----Original Message-----
From: Wenzhuo Lu <[email protected]>
Sent: Wednesday, June 21, 2023 9:15 AM
To: [email protected]
Cc: Lu, Wenzhuo <[email protected]>
Subject: [PATCH] net/iavf: fix SCTP tunnel packet forwarding issueThe SCTP tunnel packets cannot be forwarded in AVX2 mode.
As 2 features are developed in parallel,
5712bf9d6e14("net/iavf: add Tx AVX2 offload path") doesn't consider the impact of4f8259df563a("net/iavf: enable Tx outer checksum offload onAVX512").
Quoted 6 lines
Quoted 6 lines
So, the wrong TX path is selected.
Fixes 5712bf9d6e14 ("net/iavf: add Tx AVX2 offload path")Signed-off-by Wenzhuo Lu <[email protected]>---
Quoted 8 lines
Quoted 6 lines
Quoted 1 line
Tested-by Song Jiale <[email protected]>Applied to dpdk-next-net-intel.
Thanks
QiSorry, this fix is not good because of some misunderstanding. Would you like helping to revert it? We'll send a new one to fix the issue. Thanks.
OK, has the patch has not been merged in main branch, I have reverted in dpdk-next-net-intel.