net/i40e/base: skip further adminq init for VF
PATCH 1/1 net/i40e/base: skip further adminq init for VF
Since VF has no need of firmware, we can skip further adminq init which involves firmware operation, this patch fixes the testpmd segfault issue when starting with i40e VF.
--- drivers/net/i40e/base/i40e_adminq.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/net/i40e/base/i40e_adminq.c +3 -0
@@ -673,6 +673,9 @@ enum i40e_status_code i40e_init_adminq(struct i40e_hw *hw)if (ret_code !=I40E_SUCCESS ) goto init_adminq_free_asq; +if (i40e_is_vf (hw)) + goto init_adminq_exit; +/* There are some cases where the firmware may not be quite ready * for AdminQ operations, so we retry the AdminQ setup a few times * if we see timeouts in this first AQ call.
Signature · 1 line
2.17.1
Quoted 35 lines
-----Original Message-----
From: Ye, Xiaolong
Sent: Wednesday, January 22, 2020 11:58 AM
To: Xing, Beilei <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; Ye, Xiaolong <[email protected]>
Subject: [PATCH]net/i40e/base: skip further adminq init for VFSince VF has no need of firmware, we can skip further adminq init which involves firmware operation, this patch fixes the testpmd segfault issue when starting with i40e VF.
Fixes d5e1a149362e ("net/i40e/base: check MAC type")Signed-off-by Xiaolong Ye <[email protected]>--- drivers/net/i40e/base/i40e_adminq.c | 3 +++ 1 file changed, 3 insertions(+)drivers/net/i40e/base/i40e_adminq.c +3
-0@@ -673,6 +673,9 @@ enum i40e_status_code i40e_init_adminq(struct i40e_hw *hw)if (ret_code !=I40E_SUCCESS ) goto init_adminq_free_asq; +if (i40e_is_vf (hw)) + goto init_adminq_exit; +/* There are some cases where the firmware may not be quite ready * for AdminQ operations, so we retry the AdminQ setup a few times
Quoted 3 lines
* if we see timeouts in this first AQ call.
--
2.17.1
Ye Xiaolong
AppliedQuoted 30 lines · Beilei
Quoted 30 lines
-----Original Message-----
From: Ye, Xiaolong
Sent: Wednesday, January 22, 2020 11:58 AM
To: Xing, Beilei <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; Ye, Xiaolong <[email protected]>
Subject: [PATCH]net/i40e/base: skip further adminq init for VFSince VF has no need of firmware, we can skip further adminq init which involves firmware operation, this patch fixes the testpmd segfault issue when starting with i40e VF.
Fixes d5e1a149362e ("net/i40e/base: check MAC type")Signed-off-by Xiaolong Ye <[email protected]>--- drivers/net/i40e/base/i40e_adminq.c | 3 +++ 1 file changed, 3 insertions(+)drivers/net/i40e/base/i40e_adminq.c +0
-0@@ -673,6 +673,9 @@ enum i40e_status_code i40e_init_adminq(struct i40e_hw *hw)if (ret_code !=I40E_SUCCESS ) goto init_adminq_free_asq;
Quoted 10 lines
Quoted 8 lines
drivers/net/i40e/base/i40e_adminq.c +3
-0+if (i40e_is_vf (hw)) + goto init_adminq_exit; +/* There are some cases where the firmware may not be quite ready * for AdminQ operations, so we retry the AdminQ setup a few times * if we see timeouts in this first AQ call.
--
2.17.1Acked-by Beilei Xing <[email protected]>
Applied to dpdk-next-net-intel, Thanks.
Quoted 42 lines · Ye Xiaolong
Quoted 30 lines · Beilei
Quoted 30 lines
-----Original Message-----
From: Ye, Xiaolong
Sent: Wednesday, January 22, 2020 11:58 AM
To: Xing, Beilei <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; Ye, Xiaolong <[email protected]>
Subject: [PATCH]net/i40e/base: skip further adminq init for VFSince VF has no need of firmware, we can skip further adminq init which involves firmware operation, this patch fixes the testpmd segfault issue when starting with i40e VF.
Fixes d5e1a149362e ("net/i40e/base: check MAC type")Signed-off-by Xiaolong Ye <[email protected]>--- drivers/net/i40e/base/i40e_adminq.c | 3 +++ 1 file changed, 3 insertions(+)drivers/net/i40e/base/i40e_adminq.c +0
-0@@ -673,6 +673,9 @@ enum i40e_status_code i40e_init_adminq(struct i40e_hw *hw)if (ret_code !=I40E_SUCCESS ) goto init_adminq_free_asq;Quoted 10 lines
Quoted 8 lines
drivers/net/i40e/base/i40e_adminq.c +3
-0+if (i40e_is_vf (hw)) + goto init_adminq_exit; +/* There are some cases where the firmware may not be quite ready * for AdminQ operations, so we retry the AdminQ setup a few times * if we see timeouts in this first AQ call.
--
2.17.1Acked-by Beilei Xing <[email protected]>
Quoted 2 lines
Applied to dpdk-next-net-intel, Thanks.
Commented new block while merging to next-net, change become:
+ /* VF has no need of firmware */
+ if (i40e_is_vf(hw))
+ goto init_adminq_exit;