[PATCH v3] net/iavf: fix error of virtchnl command
Zhou, YidingX
yidingx.zhou at intel.com
Mon Oct 10 04:02:31 CEST 2022
> > This commit starts a thread to handle all events to fix this issue.
> >
> > Fixes: 48de41ca11f0 ("net/avf: enable link status update")
> > CC: stable at dpdk.org
> >
> > Signed-off-by: Yiding Zhou <yidingx.zhou at intel.com>
> > ---
> > +
> > static uint32_t
> > iavf_convert_link_speed(enum virtchnl_link_speed virt_link_speed) {
> > @@ -
> > 293,7 +427,7 @@ iavf_handle_pf_event_msg(struct rte_eth_dev *dev,
> > uint8_t *msg,
> > vf->link_speed = iavf_convert_link_speed(speed);
> > }
> > iavf_dev_link_update(dev, 0);
> > - rte_eth_dev_callback_process(dev,
> > RTE_ETH_EVENT_INTR_LSC, NULL);
> > + iavf_dev_event_post(dev, RTE_ETH_EVENT_INTR_LSC, NULL);
>
> If we decide to raise an etherdev event from a separate thread, is it better to
> do this for all events ?
Since there are no bug reports for other events, I have not handle them in event thread, I will follow your comments in v4.
Thanks~
More information about the stable
mailing list