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

2021-06-08 Thread Balazs Nemeth
Same idea as commit a287ac28919d ("vhost: allocate and free packets in bulk in Tx packed"), allocate and free packets in bulk. Also remove the unused function virtio_dev_pktmbuf_alloc. Signed-off-by: Balazs Nemeth Reviewed-by: Maxime Coquelin --- lib/vhost/virtio_net.c | 37

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. > >

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

2021-04-16 Thread Balazs Nemeth
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. Signed-off-by: Balazs Nemeth --- lib/librte_vhost/virt