[PATCH] net/nfp: changes to link status reporting

Ferruh Yigit ferruh.yigit at amd.com
Wed Jun 21 16:42:38 CEST 2023


On 6/15/2023 4:27 AM, Chaoyong He wrote:
> From: James Hershaw <james.hershaw at corigine.com>
> 
> The NFP PMD driver retrieves the linkspeed by reading the
> NFP_NET_CFG_STS_LINK register. This register is not set by all versions
> of the firmware. Changes in this patch include:
> 
> Addition of listener function to deal with control messages of type
> NFP_FLOWER_CMSG_TYPE_PORT_MOD being received by the PMD. This ensures
> that the up/down status of the port is updated when a version of
> firmware is being used that does not write the link status to the
> NFP_NET_CFG_STS register.
> 
> Update the nfp_flower_repr_link_update() function to preferably read the
> linkspeed from the port table, while keeping the old lookup method as a
> fallback in case that is not supported.
> 
> Signed-off-by: James Hershaw <james.hershaw at corigine.com>
> Reviewed-by: Long Wu <long.wu at corigine.com>
> Reviewed-by: Chaoyong He <chaoyong.he at corigine.com>
> Reviewed-by: Niklas Söderlund <niklas.soderlund at corigine.com>
>

Applied to dpdk-next-net/main, thanks.



More information about the dev mailing list