Re: [dpdk-dev] [PATCH v3] vhost: allocate and free packets in bulk

2021-04-16 Thread David Marchand
On Fri, Apr 16, 2021 at 11:12 AM Balazs Nemeth wrote: > I was also thinking about using the same idea for tx split so that > virtio_dev_pktmbuf_alloc can be removed completely. I don't have those > patches yet. However, I can make virtio_dev_pktmbuf_alloc use > virtio_dev_pktmbuf_prep for this

Re: [dpdk-dev] [PATCH v3] vhost: allocate and free packets in bulk

2021-04-16 Thread Maxime Coquelin
Hi Balazs, On 4/16/21 11:12 AM, Balazs Nemeth wrote: > Hi David, > > I was also thinking about using the same idea for tx split so that > virtio_dev_pktmbuf_alloc can be removed completely. I don't have those > patches yet. However, I can make virtio_dev_pktmbuf_alloc use > virtio_dev_pktmbuf_pre

Re: [dpdk-dev] [PATCH v3] vhost: allocate and free packets in bulk

2021-04-16 Thread Balazs Nemeth
Hi David, I was also thinking about using the same idea for tx split so that virtio_dev_pktmbuf_alloc can be removed completely. I don't have those patches yet. However, I can make virtio_dev_pktmbuf_alloc use virtio_dev_pktmbuf_prep for this patch that addresses the packed version and submit othe

Re: [dpdk-dev] [PATCH v3] vhost: allocate and free packets in bulk

2021-04-16 Thread David Marchand
On Fri, Apr 16, 2021 at 10:18 AM Balazs Nemeth wrote: > > Move allocation out further and perform all allocation in bulk. The same > goes for freeing packets. In the process, also rename > virtio_dev_pktmbuf_alloc to virtio_dev_pktmbuf_prep. This > function now receives an already allocated mbuf p

Re: [dpdk-dev] [PATCH v3] vhost: allocate and free packets in bulk

2021-04-16 Thread Maxime Coquelin
On 4/16/21 10:18 AM, Balazs Nemeth wrote: > Move allocation out further and perform all allocation in bulk. The same > goes for freeing packets. In the process, also rename > virtio_dev_pktmbuf_alloc to virtio_dev_pktmbuf_prep. This > function now receives an already allocated mbuf pointer. > >