Re: [PATCH] net/ice: fix link status error when dev start

2022-12-12 Thread Shuang Han
I agree. Maybe this is the better solution Zhang, Qi Z 于2022年12月13日周二 09:50写道: > > > > -Original Message- > > From: Shuang Han > > Sent: Wednesday, November 23, 2022 8:42 PM > > To: dev@dpdk.org > > Cc: Yang, Qiming ; Zhang, Qi Z > > ; Shuang H

RE: [PATCH] net/ice: fix link status error when dev start

2022-12-12 Thread Zhang, Qi Z
> -Original Message- > From: Shuang Han > Sent: Wednesday, November 23, 2022 8:42 PM > To: dev@dpdk.org > Cc: Yang, Qiming ; Zhang, Qi Z > ; Shuang Han > Subject: [PATCH] net/ice: fix link status error when dev start > > ice_link_update get port link sta

[PATCH] net/ice: fix link status error when dev start

2022-11-23 Thread Shuang Han
ice_link_update get port link status and wait for one second when dev start. If the device need almost one second for link up, ice_link_update will enter the last rte_delay_ms(CHECK_INTERVAL) with link down, in the meantime link interrupt raised, the interrupt handler update dev->data->dev_link to