> -----Original Message----- > From: Kaiwen Deng <kaiwenx.d...@intel.com> > Sent: Wednesday, March 22, 2023 3:26 PM > To: dev@dpdk.org > Cc: sta...@dpdk.org; Yang, Qiming <qiming.y...@intel.com>; Zhou, YidingX > <yidingx.z...@intel.com>; Deng, KaiwenX <kaiwenx.d...@intel.com>; > Chas Williams <ch...@att.com>; Min Hu (Connor) <humi...@huawei.com>; > Wu, Jingjing <jingjing...@intel.com>; Xing, Beilei <beilei.x...@intel.com>; > Mike Pattrick <m...@redhat.com>; Zhang, Qi Z <qi.z.zh...@intel.com>; > Doherty, Declan <declan.dohe...@intel.com>; Mrzyglod, Daniel T > <daniel.t.mrzyg...@intel.com>; Dapeng Yu <dapengx...@intel.com> > Subject: [PATCH v3] net/iavf: fix iavf query stats in intr thread > > When iavf send query-stats command in eal-intr-thread through virtual > channel, there will be no response received from iavf_dev_virtchnl_handler > for this command during block and wait. > Because iavf_dev_virtchnl_handler is also registered in eal-intr-thread. > > When vf device is bonded as BONDING_MODE_TLB mode, the slave device > update callback will registered in alarm and called by eal-intr-thread, it > would > also raise the above issue. > > This commit add to poll the response for VIRTCHNL_OP_GET_STATS when it > is called by eal-intr-thread to fix this issue. > > Fixes: 91bf37d250aa ("net/iavf: add lock for VF commands") > Fixes: 22b123a36d07 ("net/avf: initialize PMD") > Fixes: 7c76a747e68c ("bond: add mode 5") > Fixes: 435d523112cc ("net/iavf: fix multi-process shared data") > Fixes: cb5c1b91f76f ("net/iavf: add thread for event callbacks") > Cc: sta...@dpdk.org > > Signed-off-by: Kaiwen Deng <kaiwenx.d...@intel.com> > --- Tested-by: Jiale Song < songx.ji...@intel.com>