Hi

This issue is already fixed in 20.02 with base code update of the following 
commit.



commit 37b091c75b13d2f26359be9b77adbc33c55a7581

Author: Xiaolong Ye <[email protected]>

Date:   Mon Jan 13 10:39:31 2020 +0800



    net/i40e/base: extend PHY access AQ command



    Currently FW use MDIO I/F number corresponded with current PF for PHY

    access. This code allow to specify used MDIO I/F number.



    Signed-off-by: Piotr Azarewicz <[email protected]>

    Signed-off-by: Xiaolong Ye <[email protected]>

    Acked-by: Qi Zhang <[email protected]>

Acked-by: Beilei Xing [email protected]<mailto:[email protected]>



But it makes sense to back port this to stable release so it can work with dpdk 
version <=19.11.

Still some comments inline.



> -----Original Message-----

> From: stable [mailto:[email protected]] On Behalf Of Zhike Wang

> Sent: Thursday, January 16, 2020 09:20

> To: [email protected]

> Cc: Xing, Beilei <[email protected]>; Zhang, Qi Z <[email protected]>;

> [email protected]; Zhike Wang <[email protected]>

> Subject: [dpdk-stable] [PATCH] net/i40e: fix X722 judgement when disable

> adminq operation

>

> X722 SFPs have different flavors, eg I40E_DEV_ID_SFP_X722

> /I40E_DEV_ID_SFP_I_X722. So instead we use mac.type to judge whether it is

> X722 or not.

>

Please be careful about your commit log. If you use mac.type == X722, then 
that's not just X722 SFP but all X722 devices.

You can just say something like X722 doesn't support adminq operation so 
disable it.



> Fixes: 9efa8d28b ("net/i40e: fix SFP X722 with FW4.16")

Please follow the DPDK community code style. Fix line needs commit id of 12 bit.

In this case, should be: Fixes: 9efa8d28b4da ("net/i40e: fix SFP X722 with 
FW4.16")

And since this fix makes sense for <=19.11, please add this line: Cc: 
[email protected]



> Signed-off-by: Zhike Wang <[email protected]<mailto:[email protected]>>

> ---

>  drivers/net/i40e/i40e_ethdev.c | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)

>

> diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c

> index 5999c96..85ccb76 100644

> --- a/drivers/net/i40e/i40e_ethdev.c

> +++ b/drivers/net/i40e/i40e_ethdev.c

> @@ -1443,7 +1443,7 @@ static inline void i40e_config_automask(struct

> i40e_pf *pf)

>                            return -EIO;

>             }

>             /* Firmware of SFP x722 does not support adminq option */

> -          if (hw->device_id == I40E_DEV_ID_SFP_X722)

> +          if (hw->mac.type == I40E_MAC_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",

> --

> 1.8.3.1

>

Reply via email to