> -----Original Message-----
> From: Zhou, YidingX <yidingx.z...@intel.com>
> Sent: Thursday, May 12, 2022 6:49 PM
> To: dev@dpdk.org; Wu, Jingjing <jingjing...@intel.com>; Xing, Beilei
> <beilei.x...@intel.com>
> Cc: Zhang, Qi Z <qi.z.zh...@intel.com>; sta...@dpdk.org
> Subject: [PATCH v3] net/iavf: fix segfaults when calling API after VF reset
> failed
>
> Some pointers will be set to NULL when iavf_dev_reset() failed, for example
> vf-
> >vf_res, vf->vsi_res vf->rss_key and etc.
> APIs access these NULL pointers will trigger segfault.
>
> This patch adds closed flag to indicate that the VF is closed, and rejects
> API calls
> in this state to avoid coredump.
>
> Fixes: e74e1bb6280d ("net/iavf: enable port reset")
> Cc: sta...@dpdk.org
>
> Signed-off-by: Yiding Zhou <yidingx.z...@intel.com>
Acked-by: Qi Zhang <qi.z.zh...@intel.com>
Applied to dpdk-next-net-intel.
Thanks
Qi