Skip to contentSkip to conversation

net/ice: fix wrong data path selection in secondary process

PATCH In review Qi Zhang 6 participants 10 messages May 24, 2021 – Feb 25, 2022 Network drivers

lore
Share & tools
lore

Qi Zhang

author
#0 lore raw

PATCH 1/1 net/ice: fix wrong data path selection in secondary process

The flag use_avx2 and use_avx512 are defined as local variables, they will not be aware by the secondary process, then wrong data path is selected. Fix the issue by moving them into struct ice_adapter.

Fixes ae60d3c9b227 ("net/ice: support Rx AVX2 vector")
Fixes 2d5f6953d56d ("net/ice: support vector AVX2 in Tx")
Fixes 7f85d5ebcfe1 ("net/ice: add AVX512 vector path")
---
 drivers/net/ice/ice_ethdev.h |  6 +++++
 drivers/net/ice/ice_rxtx.c   | 44 ++++++++++++++++++------------------
 2 files changed, 28 insertions(+), 22 deletions(-)
drivers/net/ice/ice_ethdev.h +6 -0
index 2a8a8169d5..aebfd1b0b7 100644
@@ -487,6 +487,12 @@ struct ice_adapter {
 	struct ice_devargs devargs;
 	enum ice_pkg_type active_pkg_type; /* loaded ddp package type */
 	uint16_t fdir_ref_cnt;
+#ifdef RTE_ARCH_X86
+	bool rx_use_avx2;
+	bool rx_use_avx512;
+	bool tx_use_avx2;
+	bool tx_use_avx512;
+#endif
 };
 
 struct ice_vsi_vlan_pvid_info {
drivers/net/ice/ice_rxtx.c +22 -22

124 lines not on this page · raw message

Signature · 1 line
2.26.2
#1 lore raw

Hi, Qi

I've tested this patch and it works.

Best Regards,
Yixue.

Quoted 194 lines

-----Original Message-----
From: Zhang, Qi Z <[email protected]>
Sent: Monday, May 24, 2021 17:08
To: Yang, Qiming <[email protected]>
Cc: Zhang, Liheng <[email protected]>; Wang, Yixue <[email protected]>; Dong, Yao <[email protected]>; [email protected]; Zhang, Qi Z <[email protected]>; [email protected]
Subject: [PATCH] net/ice: fix wrong data path selection in secondary process

The flag use_avx2 and use_avx512 are defined as local variables, they will not be aware by the secondary process, then wrong data path is selected. Fix the issue by moving them into struct ice_adapter.

Fixes ae60d3c9b227 ("net/ice: support Rx AVX2 vector")
Fixes 2d5f6953d56d ("net/ice: support vector AVX2 in Tx")
Fixes 7f85d5ebcfe1 ("net/ice: add AVX512 vector path")
---
 drivers/net/ice/ice_ethdev.h |  6 +++++
 drivers/net/ice/ice_rxtx.c   | 44 ++++++++++++++++++------------------
 2 files changed, 28 insertions(+), 22 deletions(-)
drivers/net/ice/ice_ethdev.h index renamed from drivers/net/ice/ice_ethdev.h +0 -0

2a8a8169d5..aebfd1b0b7 100644

drivers/net/ice/ice_ethdev.h +6 -0
@@ -487,6 +487,12 @@ struct ice_adapter {
 	struct ice_devargs devargs;
 	enum ice_pkg_type active_pkg_type; /* loaded ddp package type */
 	uint16_t fdir_ref_cnt;
+#ifdef RTE_ARCH_X86
+	bool rx_use_avx2;
+	bool rx_use_avx512;
+	bool tx_use_avx2;
+	bool tx_use_avx512;
+#endif
 };
 
 struct ice_vsi_vlan_pvid_info {
drivers/net/ice/ice_rxtx.c index renamed from drivers/net/ice/ice_rxtx.c +0 -0

49abcb2f5c..f4f6f48d78 100644

drivers/net/ice/ice_rxtx.c +3 -3
@@ -3058,11 +3058,11 @@ ice_set_rx_function(struct rte_eth_dev *dev)
 #ifdef RTE_ARCH_X86
 	struct ice_rx_queue *rxq;
 	int i;
-	int rx_check_ret;
-	bool use_avx512 = false;
-	bool use_avx2 = false;
+	int rx_check_ret = 0;
 
 	if (rte_eal_process_type() == RTE_PROC_PRIMARY) {
+		ad->rx_use_avx512 = false;
+		ad->rx_use_avx2 = false;
 		rx_check_ret = ice_rx_vec_dev_check(dev);
 		if (rx_check_ret >= 0 && ad->rx_bulk_alloc_allowed &&
 		    rte_vect_get_max_simd_bitwidth() >= RTE_VECT_SIMD_128)

{ @@ -3079,16 +3079,16 @@ ice_set_rx_function(struct rte_eth_dev *dev)
rte_cpu_get_flag_enabled(RTE_CPUFLAG_AVX512F) ==
1 &&
rte_cpu_get_flag_enabled(RTE_CPUFLAG_AVX512BW)
== 1) #ifdef CC_AVX512_SUPPORT

drivers/net/ice/ice_rxtx.c +2 -2
-				use_avx512 = true;
+				ad->rx_use_avx512 = true;
 #else
 			PMD_DRV_LOG(NOTICE,
 				"AVX512 is not supported in build env");  #endif
-			if (!use_avx512 &&
+			if (!ad->rx_use_avx512 &&
 			(rte_cpu_get_flag_enabled(RTE_CPUFLAG_AVX2) == 1

||
rte_cpu_get_flag_enabled(RTE_CPUFLAG_AVX512F) ==
1) &&
rte_vect_get_max_simd_bitwidth() >=
RTE_VECT_SIMD_256)

drivers/net/ice/ice_rxtx.c +2 -2
-				use_avx2 = true;
+				ad->rx_use_avx2 = true;
 
 		} else {
 			ad->rx_vec_allowed = false;
@@ -3097,7 +3097,7 @@ ice_set_rx_function(struct rte_eth_dev *dev)
 
 	if (ad->rx_vec_allowed) {
 		if (dev->data->scattered_rx) {
-			if (use_avx512) {
+			if (ad->rx_use_avx512) {
 #ifdef CC_AVX512_SUPPORT
 				if (rx_check_ret ==
 ICE_VECTOR_OFFLOAD_PATH) {
drivers/net/ice/ice_rxtx.c +3 -3
 					PMD_DRV_LOG(NOTICE,
@@ -3116,14 +3116,14 @@ ice_set_rx_function(struct rte_eth_dev *dev)
 			} else {
 				PMD_DRV_LOG(DEBUG,
 					"Using %sVector Scattered Rx
 (port %d).",
-					use_avx2 ? "avx2 " : "",
+					ad->rx_use_avx2 ? "avx2 " : "",
 					dev->data->port_id);
-				dev->rx_pkt_burst = use_avx2 ?
+				dev->rx_pkt_burst = ad->rx_use_avx2 ?
 					ice_recv_scattered_pkts_vec_avx2 :
 					ice_recv_scattered_pkts_vec;
 			}
 		} else {
-			if (use_avx512) {
+			if (ad->rx_use_avx512) {
 #ifdef CC_AVX512_SUPPORT
 				if (rx_check_ret ==

ICE_VECTOR_OFFLOAD_PATH) {

drivers/net/ice/ice_rxtx.c +5 -5
 					PMD_DRV_LOG(NOTICE,
@@ -3142,9 +3142,9 @@ ice_set_rx_function(struct rte_eth_dev *dev)
 			} else {
 				PMD_DRV_LOG(DEBUG,
 					"Using %sVector Rx (port %d).",
-					use_avx2 ? "avx2 " : "",
+					ad->rx_use_avx2 ? "avx2 " : "",
 					dev->data->port_id);
-				dev->rx_pkt_burst = use_avx2 ?
+				dev->rx_pkt_burst = ad->rx_use_avx2 ?
 					ice_recv_pkts_vec_avx2 :
 					ice_recv_pkts_vec;
 			}
@@ -3294,11 +3294,11 @@ ice_set_tx_function(struct rte_eth_dev *dev)
 #ifdef RTE_ARCH_X86
 	struct ice_tx_queue *txq;
 	int i;
-	int tx_check_ret;
-	bool use_avx512 = false;
-	bool use_avx2 = false;
+	int tx_check_ret = 0;
 
 	if (rte_eal_process_type() == RTE_PROC_PRIMARY) {
+		ad->tx_use_avx2 = false;
+		ad->tx_use_avx512 = false;
 		tx_check_ret = ice_tx_vec_dev_check(dev);
 		if (tx_check_ret >= 0 &&
 		    rte_vect_get_max_simd_bitwidth() >= RTE_VECT_SIMD_128)

{ @@ -3308,18 +3308,18 @@ ice_set_tx_function(struct rte_eth_dev *dev)
rte_cpu_get_flag_enabled(RTE_CPUFLAG_AVX512F) ==
1 &&
rte_cpu_get_flag_enabled(RTE_CPUFLAG_AVX512BW)
== 1) #ifdef CC_AVX512_SUPPORT

drivers/net/ice/ice_rxtx.c +1 -2
-				use_avx512 = true;
+				ad->tx_use_avx512 = true;
 #else
 			PMD_DRV_LOG(NOTICE,
 				"AVX512 is not supported in build env");  #endif
-			if (!use_avx512 && tx_check_ret == ICE_VECTOR_PATH

&&

drivers/net/ice/ice_rxtx.c +1 -0
+			if (!ad->tx_use_avx512 && tx_check_ret ==

ICE_VECTOR_PATH &&
(rte_cpu_get_flag_enabled(RTE_CPUFLAG_AVX2) == 1
||
rte_cpu_get_flag_enabled(RTE_CPUFLAG_AVX512F) ==
1) &&
rte_vect_get_max_simd_bitwidth() >=
RTE_VECT_SIMD_256)

drivers/net/ice/ice_rxtx.c +1 -2
-				use_avx2 = true;
+				ad->tx_use_avx2 = true;
 
-			if (!use_avx512 && tx_check_ret ==

ICE_VECTOR_OFFLOAD_PATH)

drivers/net/ice/ice_rxtx.c +1 -0
+			if (!ad->tx_use_avx512 && tx_check_ret ==

ICE_VECTOR_OFFLOAD_PATH)

drivers/net/ice/ice_rxtx.c +3 -4
 				ad->tx_vec_allowed = false;
 
 			if (ad->tx_vec_allowed) {
@@ -3337,7 +3337,7 @@ ice_set_tx_function(struct rte_eth_dev *dev)
 	}
 
 	if (ad->tx_vec_allowed) {
-		if (use_avx512) {
+		if (ad->tx_use_avx512) {
 #ifdef CC_AVX512_SUPPORT
 			if (tx_check_ret == ICE_VECTOR_OFFLOAD_PATH) {
 				PMD_DRV_LOG(NOTICE,
@@ -3354,9 +3354,9 @@ ice_set_tx_function(struct rte_eth_dev *dev)  #endif
 		} else {
 			PMD_DRV_LOG(DEBUG, "Using %sVector Tx (port %d).",
-				    use_avx2 ? "avx2 " : "",
+				    ad->tx_use_avx2 ? "avx2 " : "",
 				    dev->data->port_id);
-			dev->tx_pkt_burst = use_avx2 ?
+			dev->tx_pkt_burst = ad->tx_use_avx2 ?
 					    ice_xmit_pkts_vec_avx2 :
 					    ice_xmit_pkts_vec;
 		}
--

2.26.2

author Tested-by Yixue Wang Applied
#2 lore raw
Quoted 12 lines

-----Original Message-----
From: Wang, Yixue <[email protected]>
Sent: Thursday, June 3, 2021 6:04 PM
To: Zhang, Qi Z <[email protected]>; Yang, Qiming <[email protected]>
Cc: Zhang, Liheng <[email protected]>; Dong, Yao <[email protected]>; [email protected]; [email protected]
Subject: RE: [PATCH] net/ice: fix wrong data path selection in secondary process

Quoted 28 lines

Hi, Qi

I've tested this patch and it works.

Best Regards,
Yixue.

Quoted 21 lines

-----Original Message-----
From: Zhang, Qi Z <[email protected]>
Sent: Monday, May 24, 2021 17:08
To: Yang, Qiming <[email protected]>
Cc: Zhang, Liheng <[email protected]>; Wang, Yixue <[email protected]>; Dong, Yao <[email protected]>; [email protected]; Zhang, Qi Z <[email protected]>; [email protected]
Subject: [PATCH] net/ice: fix wrong data path selection in secondary process

The flag use_avx2 and use_avx512 are defined as local variables, they will not be aware by the secondary process, then wrong data path is selected. Fix the issue by moving them into struct ice_adapter.

Fixes ae60d3c9b227 ("net/ice: support Rx AVX2 vector")
Fixes 2d5f6953d56d ("net/ice: support vector AVX2 in Tx")
Fixes 7f85d5ebcfe1 ("net/ice: add AVX512 vector path")

Applied to dpdk-next-net-intel.

Thanks
Qi

#3 lore raw

Hi,

Is this tested on VFs? I saw crash on both PF as well as VF, on 20.11.1, but did not see PF crash on 20.11.3,
I'm seeing a crash on the secondary process when it receives packet on the VF, but PF doesn't crash now on 20.11.3

So I suspect this is the patch which is fixing the issue on ICE secondary process crash on PF.

Thanks & Regards,
Navin Srinivas

Quoted 49 lines · Qi Z
Quoted 12 lines

-----Original Message-----
From: Wang, Yixue <[email protected]>
Sent: Thursday, June 3, 2021 6:04 PM
To: Zhang, Qi Z <[email protected]>; Yang, Qiming <[email protected]>
Cc: Zhang, Liheng <[email protected]>; Dong, Yao <[email protected]>; [email protected]; [email protected]
Subject: RE: [PATCH] net/ice: fix wrong data path selection in secondary process

Quoted 28 lines

Hi, Qi

I've tested this patch and it works.

Best Regards,
Yixue.

Quoted 21 lines

-----Original Message-----
From: Zhang, Qi Z <[email protected]>
Sent: Monday, May 24, 2021 17:08
To: Yang, Qiming <[email protected]>
Cc: Zhang, Liheng <[email protected]>; Wang, Yixue <[email protected]>; Dong, Yao <[email protected]>; [email protected]; Zhang, Qi Z <[email protected]>; [email protected]
Subject: [PATCH] net/ice: fix wrong data path selection in secondary process

The flag use_avx2 and use_avx512 are defined as local variables, they will not be aware by the secondary process, then wrong data path is selected. Fix the issue by moving them into struct ice_adapter.

Fixes ae60d3c9b227 ("net/ice: support Rx AVX2 vector")
Fixes 2d5f6953d56d ("net/ice: support vector AVX2 in Tx")
Fixes 7f85d5ebcfe1 ("net/ice: add AVX512 vector path")

Applied to dpdk-next-net-intel.

Thanks
Qi

author Tested-by Yixue Wang Applied
#4 lore raw

Hi Srinivas:

This is the fix for PF driver only, for VF we have a separated fix and it is not be captured in 20.11.3, but I saw the patches are already merged in stable tree.
You can try with latest 20.11.4-rc1, or wait for 20.11.4 LTS.

Regards
Qi

From: Navin Srinivas <[email protected]>
Sent: Tuesday, February 22, 2022 11:56 AM
To: Zhang, Qi Z <[email protected]>
Cc: Wang, Yixue <[email protected]>; Yang, Qiming <[email protected]>; Zhang, Liheng <[email protected]>; Dong, Yao <[email protected]>; [email protected]; [email protected]
Subject: Re: [dpdk-dev] [PATCH] net/ice: fix wrong data path selection in secondary process

Hi,

Is this tested on VFs? I saw crash on both PF as well as VF, on 20.11.1, but did not see PF crash on 20.11.3, I'm seeing a crash on the secondary process when it receives packet on the VF, but PF doesn't crash now on 20.11.3

So I suspect this is the patch which is fixing the issue on ICE secondary process crash on PF.

Thanks & Regards,
Navin Srinivas

Quoted 10 lines · On Thu, Jun 3, 2021 at 3:51 PM Zhang, Qi Z…

-----Original Message-----
From: Wang, Yixue <[email protected]<mailto:[email protected]>>
Sent: Thursday, June 3, 2021 6:04 PM
To: Zhang, Qi Z <[email protected]<mailto:[email protected]>>; Yang, Qiming <[email protected]<mailto:[email protected]>>
Cc: Zhang, Liheng <[email protected]<mailto:[email protected]>>; Dong, Yao <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]>; [email protected]<mailto:[email protected]>
Subject: RE: [PATCH] net/ice: fix wrong data path selection in secondary
process

Quoted 28 lines

Hi, Qi

I've tested this patch and it works.

Best Regards,
Yixue.

Quoted 21 lines

-----Original Message-----
From: Zhang, Qi Z <[email protected]<mailto:[email protected]>>
Sent: Monday, May 24, 2021 17:08
To: Yang, Qiming <[email protected]<mailto:[email protected]>>
Cc: Zhang, Liheng <[email protected]<mailto:[email protected]>>; Wang, Yixue <[email protected]<mailto:[email protected]>>; Dong, Yao <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]>; Zhang, Qi Z <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]>
Subject: [PATCH] net/ice: fix wrong data path selection in secondary
process

The flag use_avx2 and use_avx512 are defined as local variables, they will not be aware by the secondary process, then wrong data path is selected. Fix the issue by moving them into struct ice_adapter.

Fixes ae60d3c9b227 ("net/ice: support Rx AVX2 vector")
Fixes 2d5f6953d56d ("net/ice: support vector AVX2 in Tx")
Fixes 7f85d5ebcfe1 ("net/ice: add AVX512 vector path")

Applied to dpdk-next-net-intel.

Thanks
Qi

#5 lore raw

Hi Qi,

Thank you for the confirmation! I will try with the mentioned release.

Thanks & Regards,
Navin Srinivas

Quoted 103 lines · Qi Z

Hi Srinivas:

This is the fix for PF driver only, for VF we have a separated fix and it is not be captured in 20.11.3, but I saw the patches are already merged in stable tree.

You can try with latest 20.11.4-rc1, or wait for 20.11.4 LTS.

Regards

Qi

*From:* Navin Srinivas <[email protected]>
*Sent:* Tuesday, February 22, 2022 11:56 AM
*To:* Zhang, Qi Z <[email protected]>
*Cc:* Wang, Yixue <[email protected]>; Yang, Qiming < [email protected]>; Zhang, Liheng <[email protected]>; Dong, Yao <[email protected]>; [email protected]; [email protected] *Subject:* Re: [dpdk-dev] [PATCH] net/ice: fix wrong data path selection in secondary process

Hi,

Is this tested on VFs? I saw crash on both PF as well as VF, on 20.11.1, but did not see PF crash on 20.11.3,

I'm seeing a crash on the secondary process when it receives packet on the VF, but PF doesn't crash now on 20.11.3

So I suspect this is the patch which is fixing the issue on ICE secondary process crash on PF.

Thanks & Regards,

Navin Srinivas

Quoted 10 lines · Qi Z

-----Original Message-----
From: Wang, Yixue <[email protected]>
Sent: Thursday, June 3, 2021 6:04 PM
To: Zhang, Qi Z <[email protected]>; Yang, Qiming <[email protected]>
Cc: Zhang, Liheng <[email protected]>; Dong, Yao <[email protected]>; [email protected]; [email protected]
Subject: RE: [PATCH] net/ice: fix wrong data path selection in secondary process

Quoted 28 lines

Hi, Qi

I've tested this patch and it works.

Best Regards,
Yixue.

Quoted 21 lines

-----Original Message-----
From: Zhang, Qi Z <[email protected]>
Sent: Monday, May 24, 2021 17:08
To: Yang, Qiming <[email protected]>
Cc: Zhang, Liheng <[email protected]>; Wang, Yixue <[email protected]>; Dong, Yao <[email protected]>; [email protected]; Zhang, Qi Z <[email protected]>; [email protected]
Subject: [PATCH] net/ice: fix wrong data path selection in secondary process

The flag use_avx2 and use_avx512 are defined as local variables, they will not be aware by the secondary process, then wrong data path is selected. Fix the issue by moving them into struct ice_adapter.

Fixes ae60d3c9b227 ("net/ice: support Rx AVX2 vector")
Fixes 2d5f6953d56d ("net/ice: support vector AVX2 in Tx")
Fixes 7f85d5ebcfe1 ("net/ice: add AVX512 vector path")

Applied to dpdk-next-net-intel.

Thanks
Qi

#6 lore raw
In reply to Zhang, Qi Z
Quoted 5 lines · Qi Z

Hi Srinivas:

This is the fix for PF driver only, for VF we have a separated fix and it is not be captured in 20.11.3, but I saw the patches are already merged in stable tree.
You can try with latest 20.11.4-rc1, or wait for 20.11.4 LTS.

20.11.4 is already released. Xueming sent details here
http://inbox.dpdk.org/announce/[email protected]/T/#u

You can check the release notes (or git) for specific fixes
https://git.dpdk.org/dpdk-stable/tree/doc/guides/rel_notes/release_20_11.rst?h=20.11

Quoted 67 lines

Regards
Qi

From: Navin Srinivas <[email protected]>
Sent: Tuesday, February 22, 2022 11:56 AM
To: Zhang, Qi Z <[email protected]>
Cc: Wang, Yixue <[email protected]>; Yang, Qiming <[email protected]>; Zhang, Liheng <[email protected]>; Dong, Yao <[email protected]>; [email protected]; [email protected]
Subject: Re: [dpdk-dev] [PATCH] net/ice: fix wrong data path selection in secondary process

Hi,

Is this tested on VFs? I saw crash on both PF as well as VF, on 20.11.1, but did not see PF crash on 20.11.3, I'm seeing a crash on the secondary process when it receives packet on the VF, but PF doesn't crash now on 20.11.3

So I suspect this is the patch which is fixing the issue on ICE secondary process crash on PF.

Thanks & Regards,
Navin Srinivas

Quoted 10 lines · On Thu, Jun 3, 2021 at 3:51 PM Zhang, Qi Z…

-----Original Message-----
From: Wang, Yixue <[email protected]<mailto:[email protected]>>
Sent: Thursday, June 3, 2021 6:04 PM
To: Zhang, Qi Z <[email protected]<mailto:[email protected]>>; Yang, Qiming <[email protected]<mailto:[email protected]>>
Cc: Zhang, Liheng <[email protected]<mailto:[email protected]>>; Dong, Yao <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]>; [email protected]<mailto:[email protected]>
Subject: RE: [PATCH] net/ice: fix wrong data path selection in secondary
process

Quoted 28 lines

Hi, Qi

I've tested this patch and it works.

Best Regards,
Yixue.

Quoted 21 lines

-----Original Message-----
From: Zhang, Qi Z <[email protected]<mailto:[email protected]>>
Sent: Monday, May 24, 2021 17:08
To: Yang, Qiming <[email protected]<mailto:[email protected]>>
Cc: Zhang, Liheng <[email protected]<mailto:[email protected]>>; Wang, Yixue <[email protected]<mailto:[email protected]>>; Dong, Yao <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]>; Zhang, Qi Z <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]>
Subject: [PATCH] net/ice: fix wrong data path selection in secondary
process

The flag use_avx2 and use_avx512 are defined as local variables, they will not be aware by the secondary process, then wrong data path is selected. Fix the issue by moving them into struct ice_adapter.

Fixes ae60d3c9b227 ("net/ice: support Rx AVX2 vector")
Fixes 2d5f6953d56d ("net/ice: support vector AVX2 in Tx")
Fixes 7f85d5ebcfe1 ("net/ice: add AVX512 vector path")

Applied to dpdk-next-net-intel.

Thanks
Qi

#7 lore raw

are those patch available/merged in dpdk 21.11?

Dong yao (from my iPhone)

Quoted 70 lines · 在 2022年2月22日,下午5:26,Kevin Traynor <[email protected]> 写道:
Quoted 3 lines · Qi Z

Hi Srinivas:
This is the fix for PF driver only, for VF we have a separated fix and it is not be captured in 20.11.3, but I saw the patches are already merged in stable tree.
You can try with latest 20.11.4-rc1, or wait for 20.11.4 LTS.

20.11.4 is already released. Xueming sent details here
http://inbox.dpdk.org/announce/[email protected]/T/#u

You can check the release notes (or git) for specific fixes
https://git.dpdk.org/dpdk-stable/tree/doc/guides/rel_notes/release_20_11.rst?h=20.11

Quoted 56 lines

Regards
Qi
From: Navin Srinivas <[email protected]>
Sent: Tuesday, February 22, 2022 11:56 AM
To: Zhang, Qi Z <[email protected]>
Cc: Wang, Yixue <[email protected]>; Yang, Qiming <[email protected]>; Zhang, Liheng <[email protected]>; Dong, Yao <[email protected]>; [email protected]; [email protected]
Subject: Re: [dpdk-dev] [PATCH] net/ice: fix wrong data path selection in secondary process
Hi,
Is this tested on VFs? I saw crash on both PF as well as VF, on 20.11.1, but did not see PF crash on 20.11.3,
I'm seeing a crash on the secondary process when it receives packet on the VF, but PF doesn't crash now on 20.11.3
So I suspect this is the patch which is fixing the issue on ICE secondary process crash on PF.
Thanks & Regards,
Navin Srinivas

Quoted 11 lines · On Thu, Jun 3, 2021 at 3:51 PM Zhang, Qi Z…

-----Original Message-----
From: Wang, Yixue <[email protected]<mailto:[email protected]>>
Sent: Thursday, June 3, 2021 6:04 PM
To: Zhang, Qi Z <[email protected]<mailto:[email protected]>>; Yang, Qiming <[email protected]<mailto:[email protected]>>
Cc: Zhang, Liheng <[email protected]<mailto:[email protected]>>; Dong, Yao <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]>; [email protected]<mailto:[email protected]>
Subject: RE: [PATCH] net/ice: fix wrong data path selection in secondary
process

Quoted 28 lines

Hi, Qi

I've tested this patch and it works.

Best Regards,
Yixue.

Quoted 21 lines

-----Original Message-----
From: Zhang, Qi Z <[email protected]<mailto:[email protected]>>
Sent: Monday, May 24, 2021 17:08
To: Yang, Qiming <[email protected]<mailto:[email protected]>>
Cc: Zhang, Liheng <[email protected]<mailto:[email protected]>>; Wang, Yixue <[email protected]<mailto:[email protected]>>; Dong, Yao <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]>; Zhang, Qi Z <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]>
Subject: [PATCH] net/ice: fix wrong data path selection in secondary
process

The flag use_avx2 and use_avx512 are defined as local variables, they will not be aware by the secondary process, then wrong data path is selected. Fix the issue by moving them into struct ice_adapter.

Fixes ae60d3c9b227 ("net/ice: support Rx AVX2 vector")
Fixes 2d5f6953d56d ("net/ice: support vector AVX2 in Tx")
Fixes 7f85d5ebcfe1 ("net/ice: add AVX512 vector path")

Applied to dpdk-next-net-intel.
Thanks
Qi

#8 lore raw

They are both included in DPDK21.11 according to my alignment with Qi and Dapeng.

Quoted 107 lines

-----Original Message-----
From: Dong, Yao <[email protected]>
Sent: Tuesday, February 22, 2022 8:07 PM
To: Kevin Traynor <[email protected]>
Cc: Zhang, Qi Z <[email protected]>; Navin Srinivas <[email protected]>; Wang, Yixue <[email protected]>; Yang, Qiming <[email protected]>; Zhang, Liheng <[email protected]>; [email protected]; [email protected]; Xueming(Steven) Li <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] net/ice: fix wrong data path selection in secondary process

are those patch available/merged in dpdk 21.11?

Dong yao (from my iPhone)

Quoted 1 line

在 2022年2月22日,下午5:26,Kevin Traynor <[email protected]> 写

道:

Quoted 4 lines
Quoted 2 lines · Qi Z

Hi Srinivas:
This is the fix for PF driver only, for VF we have a separated fix and it is not be

captured in 20.11.3, but I saw the patches are already merged in stable tree.

Quoted 4 lines
Quoted 1 line

You can try with latest 20.11.4-rc1, or wait for 20.11.4 LTS.

20.11.4 is already released. Xueming sent details here
http://inbox.dpdk.org/announce/20220124084950.482883-1-

xuemingl@nvidia

Quoted 19 lines

.com/T/#u

You can check the release notes (or git) for specific fixes
https://git.dpdk.org/dpdk-stable/tree/doc/guides/rel_notes/release_20_
11.rst?h=20.11

Quoted 13 lines

Regards
Qi
From: Navin Srinivas <[email protected]>
Sent: Tuesday, February 22, 2022 11:56 AM
To: Zhang, Qi Z <[email protected]>
Cc: Wang, Yixue <[email protected]>; Yang, Qiming <[email protected]>; Zhang, Liheng <[email protected]>; Dong, Yao <[email protected]>; [email protected]; [email protected]
Subject: Re: [dpdk-dev] [PATCH] net/ice: fix wrong data path selection in secondary process Hi, Is this tested on VFs? I saw crash on both PF as well as VF, on 20.11.1, but did not see PF crash on 20.11.3, I'm seeing a crash on the secondary process when it receives packet on the VF, but PF doesn't crash now on 20.11.3 So I suspect this is the

patch which is fixing the issue on ICE secondary process crash on PF.

Quoted 3 lines
Quoted 3 lines

Thanks & Regards,
Navin Srinivas

Quoted 1 line

On Thu, Jun 3, 2021 at 3:51 PM Zhang, Qi Z

Quoted 56 lines · <[email protected]<mailto:[email protected]>> wrote:
Quoted 55 lines
Quoted 14 lines

-----Original Message-----
From: Wang, Yixue <[email protected]<mailto:[email protected]>>
Sent: Thursday, June 3, 2021 6:04 PM
To: Zhang, Qi Z <[email protected]<mailto:[email protected]>>; Yang, Qiming <[email protected]<mailto:[email protected]>>
Cc: Zhang, Liheng <[email protected]<mailto:[email protected]>>; Dong, Yao <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]>; [email protected]<mailto:[email protected]>
Subject: RE: [PATCH] net/ice: fix wrong data path selection in secondary process

Quoted 36 lines

Hi, Qi

I've tested this patch and it works.

Best Regards,
Yixue.

Quoted 29 lines

-----Original Message-----
From: Zhang, Qi Z <[email protected]<mailto:[email protected]>>
Sent: Monday, May 24, 2021 17:08
To: Yang, Qiming <[email protected]<mailto:[email protected]>>
Cc: Zhang, Liheng <[email protected]<mailto:[email protected]>>; Wang, Yixue <[email protected]<mailto:[email protected]>>; Dong, Yao <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]>;
Zhang, Qi Z <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]>
Subject: [PATCH] net/ice: fix wrong data path selection in secondary process

The flag use_avx2 and use_avx512 are defined as local variables, they will not be aware by the secondary process, then wrong data path is selected. Fix the issue by moving them into struct ice_adapter.

Fixes ae60d3c9b227 ("net/ice: support Rx AVX2 vector")
Fixes 2d5f6953d56d ("net/ice: support vector AVX2 in Tx")
Fixes 7f85d5ebcfe1 ("net/ice: add AVX512 vector path")

Reported-by: Yixue Wang <[email protected]<mailto:[email protected]>>
Signed-off-by: Qi Zhang <[email protected]<mailto:[email protected]>>

Tested-by: Yixue Wang <[email protected]<mailto:[email protected]>> Applied to dpdk-next-net-intel.
Thanks
Qi

#9 lore raw
In reply to Kevin Traynor

Thanks, I noticed it in the release and took the LTS version. I do not see the previously noticed VF crash now on 20.11.4

Navin

Quoted 103 lines · Kevin Traynor
Quoted 3 lines · Qi Z

Hi Srinivas:

This is the fix for PF driver only, for VF we have a separated fix and

it is not be captured in 20.11.3, but I saw the patches are already merged in stable tree.

Quoted 2 lines

You can try with latest 20.11.4-rc1, or wait for 20.11.4 LTS.

20.11.4 is already released. Xueming sent details here

http://inbox.dpdk.org/announce/[email protected]/T/#u

You can check the release notes (or git) for specific fixes

https://git.dpdk.org/dpdk-stable/tree/doc/guides/rel_notes/release_20_11.rst?h=20.11

Quoted 7 lines

Regards
Qi

From: Navin Srinivas <[email protected]>
Sent: Tuesday, February 22, 2022 11:56 AM
To: Zhang, Qi Z <[email protected]>
Cc: Wang, Yixue <[email protected]>; Yang, Qiming <

[email protected]>; Zhang, Liheng <[email protected]>; Dong, Yao <[email protected]>; [email protected]; [email protected]

Quoted 1 line

Subject: Re: [dpdk-dev] [PATCH] net/ice: fix wrong data path selection

in secondary process

Quoted 4 lines

Hi,

Is this tested on VFs? I saw crash on both PF as well as VF, on 20.11.1,

but did not see PF crash on 20.11.3,

Quoted 1 line

I'm seeing a crash on the secondary process when it receives packet on

the VF, but PF doesn't crash now on 20.11.3

Quoted 2 lines

So I suspect this is the patch which is fixing the issue on ICE

secondary process crash on PF.

Quoted 5 lines

Thanks & Regards,
Navin Srinivas

On Thu, Jun 3, 2021 at 3:51 PM Zhang, Qi Z <[email protected]<mailto:

Quoted 6 lines · [email protected]>> wrote:
Quoted 6 lines

-----Original Message-----
From: Wang, Yixue <[email protected]<mailto:[email protected]>>
Sent: Thursday, June 3, 2021 6:04 PM
To: Zhang, Qi Z <[email protected]<mailto:[email protected]>>;

Yang, Qiming

Quoted 2 lines
Quoted 2 lines

<[email protected]<mailto:[email protected]>>
Cc: Zhang, Liheng <[email protected]<mailto:[email protected]>>;

Dong, Yao

Quoted 1 line
Quoted 1 line

<[email protected]<mailto:[email protected]>>; [email protected]<mailto:

[email protected]>; [email protected]<mailto:[email protected]>

Quoted 7 lines
Quoted 7 lines

Subject: RE: [PATCH] net/ice: fix wrong data path selection in secondary process

Hi, Qi

I've tested this patch and it works.

Quoted 8 lines
Quoted 8 lines

Best Regards,
Yixue.

Quoted 5 lines

-----Original Message-----
From: Zhang, Qi Z <[email protected]<mailto:[email protected]>>
Sent: Monday, May 24, 2021 17:08
To: Yang, Qiming <[email protected]<mailto:[email protected]>>
Cc: Zhang, Liheng <[email protected]<mailto:

[email protected]>>; Wang, Yixue

Quoted 1 line
Quoted 1 line
Quoted 1 line

<[email protected]<mailto:[email protected]>>; Dong, Yao <

[email protected]<mailto:[email protected]>>; [email protected]<mailto:
[email protected]>;

Quoted 1 line
Quoted 1 line
Quoted 1 line

Zhang, Qi Z <[email protected]<mailto:[email protected]>>;

[email protected]<mailto:[email protected]>

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

Subject: [PATCH] net/ice: fix wrong data path selection in secondary process

The flag use_avx2 and use_avx512 are defined as local variables, they will not be aware by the secondary process, then wrong data path is selected. Fix the issue by moving them into struct ice_adapter.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Fixes ae60d3c9b227 ("net/ice: support Rx AVX2 vector")
Fixes 2d5f6953d56d ("net/ice: support vector AVX2 in Tx")
Fixes 7f85d5ebcfe1 ("net/ice: add AVX512 vector path")

[email protected]>>

Quoted 1 line
Quoted 1 line
Quoted 1 line

[email protected]>>

Quoted 8 lines
Quoted 1 line

Applied to dpdk-next-net-intel.

Thanks
Qi