Re: [dpdk-dev] [PATCH v2 2/2] vhost: introduce async enqueue for split ring

2020-07-02 Thread Fu, Patrick
ng, > Cunming > Subject: RE: [dpdk-dev] [PATCH v2 2/2] vhost: introduce async enqueue for > split ring > > > > > +#define VHOST_ASYNC_BATCH_THRESHOLD 8 > > + > > Not very clear about why batch number is 8. It is better to save it in > rte_vhost_async_feature

Re: [dpdk-dev] [PATCH v2 2/2] vhost: introduce async enqueue for split ring

2020-07-01 Thread Liu, Yong
> > +#define VHOST_ASYNC_BATCH_THRESHOLD 8 > + Not very clear about why batch number is 8. It is better to save it in rte_vhost_async_features if the value come from hardware requirement. > + > +static __rte_noinline uint32_t > +virtio_dev_rx_async_submit_split(struct virtio_net *dev, > +

[dpdk-dev] [PATCH v2 2/2] vhost: introduce async enqueue for split ring

2020-06-29 Thread patrick . fu
From: Patrick Fu This patch implements async enqueue data path for split ring. 2 new async data path APIs are defined, by which applications can submit and poll packets to/from async engines. The async enqueue data leverages callback functions registered by applications to work with the async eng