Skip to contentSkip to conversation

net/iavf: fix SCTP tunnel packet forwarding issue

PATCH Applied Wenzhuo Lu 3 participants 5 messages Jun 21, 2023 – Jul 6, 2023 Network drivers

lore
Share & tools
lore

Wenzhuo Lu

author
#0 lore raw

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.

Fixes 5712bf9d6e14 ("net/iavf: add Tx AVX2 offload path")
---
 drivers/net/iavf/iavf_rxtx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/iavf/iavf_rxtx.c +1 -1
index 4c59c1a..a22abb1 100644
@@ -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
Tested-by on v1 1/1
#1 lore raw
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 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.

Quoted 4 lines
Fixes 5712bf9d6e14 ("net/iavf: add Tx AVX2 offload path")

---

Applied
#2 lore raw
Quoted 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 issue

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 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.

Quoted 5 lines
Quoted 4 lines
Fixes 5712bf9d6e14 ("net/iavf: add Tx AVX2 offload path")

---

Applied to dpdk-next-net-intel.

Thanks
Qi

#3 lore raw

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 issue

Quoted 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 issue

Quoted 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 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").

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

---

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.

#4 lore raw
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 issue

Hi 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 issue

Quoted 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 issue

Quoted 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 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").

Quoted 6 lines
Quoted 6 lines

So, the wrong TX path is selected.

Fixes 5712bf9d6e14 ("net/iavf: add Tx AVX2 offload path")

---

Quoted 8 lines
Quoted 6 lines
Quoted 1 line

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.

OK, has the patch has not been merged in main branch, I have reverted in dpdk-next-net-intel.