RE: [PATCH v3 2/7] net/iavf: defer device start when PF VSI not ready
"Loftus, Ciara" <[email protected]>
| Newsgroups | org.dpdk.dev |
|---|---|
| Message-ID | <IA4PR11MB9278B6A992F4069DAD8D4EA88EA72@IA4PR11MB9278.namprd11.prod.outlook.com> |
> -----Original Message----- > From: Mandal, Anurag <[email protected]> > Sent: 17 August 2026 07:49 > To: [email protected] > Cc: Richardson, Bruce <[email protected]>; Medvedkin, Vladimir > <[email protected]>; Loftus, Ciara <[email protected]>; > Mandal, Anurag <[email protected]> > Subject: [PATCH v3 2/7] net/iavf: defer device start when PF VSI not ready > > During reset recovery iavf_dev_start() might fail (typically -EIO > from VIRTCHNL_OP_CONFIG_VSI_QUEUES) because the PF VSI is not yet > active, leaving the VF down and requiring manual intervention > to recover. > > Added a start_pending flag: when device start fails during recovery, > defer it instead of erroring out and resume it from newly added > iavf_resume_pending_start() on the next link-up event, so the > VF comes back automatically. > > Fixes: 3e6a5d2d310a ("net/iavf: add devargs to enable VF auto-reset") > > Signed-off-by: Anurag Mandal <[email protected]> Acked-by: Ciara Loftus <[email protected]> > --- > drivers/net/intel/iavf/iavf.h | 2 + > drivers/net/intel/iavf/iavf_ethdev.c | 61 ++++++++++++++++++++++++++-- > drivers/net/intel/iavf/iavf_vchnl.c | 3 ++ > 3 files changed, 62 insertions(+), 4 deletions(-) >