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

2021-06-17 Thread Maxime Coquelin
On 6/8/21 1:41 PM, Balazs Nemeth wrote: > 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

[dpdk-dev] [PATCH v4] 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 | 40 +++-

[dpdk-dev] [PATCH v4] 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 introduce virtio_dev_pktmbuf_prep and make virtio_dev_pktmbuf_alloc use that. Signed-off-by: Balazs Nemeth --- lib/librte_vhost/virtio_net.c | 80 +++---