[PATCH 1/2] net/hns3: fix fail to obtain VF LSC capability

Ferruh Yigit ferruh.yigit at xilinx.com
Fri Jun 24 14:01:29 CEST 2022


On 6/11/2022 8:42 AM, Dongdong Liu wrote:
> From: Huisong Li <lihuisong at huawei.com>
> 
> Currently, the VF LSC capability is obtained from PF driver in
> the interrupt mailbox interrupt thread, it is asynchronous.
> The VF driver waits for 500ms to get this capability in probe
> process.
> 
> The primary process will receive a message and do probe in the
> interrupt thread context when attach a device in the secondary
> process. At this case, VF driver never obtains this capability
> from PF.
> 
> The root cause is that 'vf->pf_push_lsc_cap' is not updated by
> the handling mailbox thread until finishing probe. The reason
> this update wouldn't be done is that the handling mailbox interrupt
> thread and the probe alarm thread are both in epool thread, and
> the probe alarm thread is before the mailbox interrupt thread.
> 
> Fixes: 9bc2289fe5ea ("net/hns3: refactor VF LSC event report")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Huisong Li <lihuisong at huawei.com>
> Signed-off-by: Dongdong Liu <liudongdong3 at huawei.com>

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


More information about the dev mailing list