net/i40e: fix SFP I X722 with FW4.16
PATCH 1/1 net/i40e: fix SFP I X722 with FW4.16
When NVM API version is 1.7 or above adminq operation to set TPID is set as supported. This cause using adminq instead of registers. For SFP_I_X722 FW4.16, reported NVM API version is 1.8, and this cause adminq operation to set as supported but it is not supported on FW4.16 Additional check added for SFP_I_X722 to not enable adminq operation.
--- drivers/net/i40e/i40e_ethdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/i40e/i40e_ethdev.c +2 -1
@@ -1550,7 +1550,8 @@ eth_i40e_dev_init(struct rte_eth_dev *dev, void *init_params __rte_unused)return -EIO ; }/* Firmware of SFP x722 does not support adminq option */ -if (hw->device_id ==I40E_DEV_ID_SFP_X722 ) +if (hw->device_id ==I40E_DEV_ID_SFP_X722 || + hw->device_id ==I40E_DEV_ID_SFP_I_X722 ) hw->flags &= ~I40E_HW_FLAG_802_1AD_CAPABLE ; PMD_INIT_LOG(INFO, "FW %d.%d API %d.%d NVM %02d.%02d.%02d eetrack %04x",
Signature · 1 line
2.9.5
Quoted 9 lines
-----Original Message-----
From: dev <[email protected]> On Behalf Of Weifeng Li
Sent: Sunday, January 10, 2021 4:34 PM
To: Xing, Beilei <[email protected]>; Guo, Jia <[email protected]>
Cc: [email protected]; Weifeng Li <[email protected]>; [email protected]
Subject: [dpdk-dev] [PATCH] net/i40e: fix SFP I X722 with FW4.16
Quoted 5 lines
When NVM API version is 1.7 or above adminq operation to set TPID is set as supported. This cause using adminq instead of registers.
ForSFP_I_X722FW4.16, reported NVM API version is 1.8, and this cause adminq operation to set as supported but it is not supported on FW4.16 Additional check added forSFP_I_X722to not enable adminq operation.
The commit log can be simplified to
Disable "802.1ad frames ability" for SFP_I_X722 as it does not support.
Quoted 14 lines
Fixes 9efa8d28b4da ("net/i40e: fix SFP X722 with FW4.16")Signed-off-by Weifeng Li <[email protected]>--- drivers/net/i40e/i40e_ethdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/net/i40e/i40e_ethdev.c +0
-0
drivers/net/i40e/i40e_ethdev.c eth_i40e_dev_init(struct rte_eth_dev *dev, void · line 1553
Quoted 4 lines
drivers/net/i40e/i40e_ethdev.c +0
-0@@ -1550,7 +1550,8 @@ eth_i40e_dev_init(struct rte_eth_dev *dev, void *init_params __rte_unused)return -EIO ; }/* Firmware of SFP x722 does not support adminq option */
This is not the problem of you patch, but the comment is totally misleading, what does "adminq option" means? could you help to correct in v2?, I40E_HW_FLAG_802_1AD_CAPABLE should means"802.1ad frames ability"
Quoted 9 lines
drivers/net/i40e/i40e_ethdev.c +2
-1-if (hw->device_id ==I40E_DEV_ID_SFP_X722 ) +if (hw->device_id ==I40E_DEV_ID_SFP_X722 || + hw->device_id ==I40E_DEV_ID_SFP_I_X722 ) hw->flags &= ~I40E_HW_FLAG_802_1AD_CAPABLE ;PMD_INIT_LOG(INFO, "FW %d.%d API %d.%d NVM %02d.%02d.%02d
eetrack %04x",
--
2.9.5
Quoted 52 lines
-----Original Message-----
From: dev <[email protected]> On Behalf Of Zhang, Qi Z
Sent: Wednesday, January 13, 2021 12:09 PM
To: Weifeng Li <[email protected]>; Xing, Beilei <[email protected]>; Guo, Jia <[email protected]>
Cc: [email protected]; [email protected]
Subject: Re: [dpdk-dev] [PATCH] net/i40e: fix SFP I X722 with FW4.16Quoted 7 lines
-----Original Message-----
From: dev <[email protected]> On Behalf Of Weifeng Li
Sent: Sunday, January 10, 2021 4:34 PM
To: Xing, Beilei <[email protected]>; Guo, Jia <[email protected]>
Cc: [email protected]; Weifeng Li <[email protected]>; [email protected]
Subject: [dpdk-dev] [PATCH] net/i40e: fix SFP I X722 with FW4.16Quoted 5 lines
When NVM API version is 1.7 or above adminq operation to set TPID is set as supported. This cause using adminq instead of registers. For
SFP_I_X722FW4.16, reported NVM API version is 1.8, and this cause adminq operation to set as supported but it is not supported on FW4.16 Additional check added forSFP_I_X722to not enable adminq operation.The commit log can be simplified to
Disable "802.1ad frames ability" forSFP_I_X722as it does not support.Quoted 14 lines
Fixes 9efa8d28b4da ("net/i40e: fix SFP X722 with FW4.16")Signed-off-by Weifeng Li <[email protected]>--- drivers/net/i40e/i40e_ethdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)(quoted diff) +0
-0
b/drivers/net/i40e/i40e_ethdev.cindex 1462248..a07879c 100644drivers/net/i40e/i40e_ethdev.c eth_i40e_dev_init(struct rte_eth_dev *dev, void · line 1553
Quoted 4 lines
drivers/net/i40e/i40e_ethdev.c +0
-0@@ -1550,7 +1550,8 @@ eth_i40e_dev_init(struct rte_eth_dev *dev, void *init_params __rte_unused)return -EIO ; }/* Firmware of SFP x722 does not support adminq option */ This is not the problem of you patch, but the comment is totally misleading, what does "adminq option" means?
could you help to correct in v2?,I40E_HW_FLAG_802_1AD_CAPABLEshould means"802.1ad frames ability"
Quoted 10 lines
Quoted 6 lines
drivers/net/i40e/i40e_ethdev.c +2
-1-if (hw->device_id ==I40E_DEV_ID_SFP_X722 ) +if (hw->device_id ==I40E_DEV_ID_SFP_X722 || + hw->device_id ==I40E_DEV_ID_SFP_I_X722 ) hw->flags &= ~I40E_HW_FLAG_802_1AD_CAPABLE ;PMD_INIT_LOG(INFO, "FW %d.%d API %d.%d NVM %02d.%02d.%02d
eetrack
Quoted 3 lines
%04x",
--
2.9.5
As the patch looks OK, I have applied to dpdk-next-net-intel with above comment be captured.
Thanks
Qi
your commit log is better. thanks.
| |
李伟峰
|
|
邮箱:[email protected]
|
签名由 网易邮箱大师 定制
Quoted 50 lines · Qi Z
-----Original Message-----
From: dev <[email protected]> On Behalf Of Zhang, Qi Z
Sent: Wednesday, January 13, 2021 12:09 PM
To: Weifeng Li <[email protected]>; Xing, Beilei <[email protected]>; Guo, Jia <[email protected]>
Cc: [email protected]; [email protected]
Subject: Re: [dpdk-dev] [PATCH] net/i40e: fix SFP I X722 with FW4.16Quoted 7 lines
-----Original Message-----
From: dev <[email protected]> On Behalf Of Weifeng Li
Sent: Sunday, January 10, 2021 4:34 PM
To: Xing, Beilei <[email protected]>; Guo, Jia <[email protected]>
Cc: [email protected]; Weifeng Li <[email protected]>; [email protected]
Subject: [dpdk-dev] [PATCH] net/i40e: fix SFP I X722 with FW4.16Quoted 5 lines
When NVM API version is 1.7 or above adminq operation to set TPID is set as supported. This cause using adminq instead of registers. For
SFP_I_X722FW4.16, reported NVM API version is 1.8, and this cause adminq operation to set as supported but it is not supported on FW4.16 Additional check added forSFP_I_X722to not enable adminq operation.The commit log can be simplified to
Disable "802.1ad frames ability" forSFP_I_X722as it does not support.Quoted 14 lines
Fixes 9efa8d28b4da ("net/i40e: fix SFP X722 with FW4.16")Signed-off-by Weifeng Li <[email protected]>--- drivers/net/i40e/i40e_ethdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)(quoted diff) +0
-0
b/drivers/net/i40e/i40e_ethdev.cindex 1462248..a07879c 100644drivers/net/i40e/i40e_ethdev.c eth_i40e_dev_init(struct rte_eth_dev *dev, void · line 1553
Quoted 4 lines
drivers/net/i40e/i40e_ethdev.c +0
-0@@ -1550,7 +1550,8 @@ eth_i40e_dev_init(struct rte_eth_dev *dev, void *init_params __rte_unused)return -EIO ; }/* Firmware of SFP x722 does not support adminq option */ This is not the problem of you patch, but the comment is totally misleading, what does "adminq option" means?
could you help to correct in v2?,I40E_HW_FLAG_802_1AD_CAPABLEshould means"802.1ad frames ability"
Quoted 10 lines
Quoted 6 lines
drivers/net/i40e/i40e_ethdev.c +2
-1-if (hw->device_id ==I40E_DEV_ID_SFP_X722 ) +if (hw->device_id ==I40E_DEV_ID_SFP_X722 || + hw->device_id ==I40E_DEV_ID_SFP_I_X722 ) hw->flags &= ~I40E_HW_FLAG_802_1AD_CAPABLE ;PMD_INIT_LOG(INFO, "FW %d.%d API %d.%d NVM %02d.%02d.%02deetrack
Quoted 3 lines
%04x",
--
2.9.5
As the patch looks OK, I have applied to dpdk-next-net-intel with above comment be captured.
Thanks
Qi