[dpdk-dev] [PATCH v3] vhost: allocate and free packets in bulk
Maxime Coquelin
maxime.coquelin at redhat.com
Fri Apr 16 10:36:38 CEST 2021
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.
>
> Signed-off-by: Balazs Nemeth <bnemeth at redhat.com>
> ---
> lib/librte_vhost/virtio_net.c | 58 +++++++++++++++++++++++------------
> 1 file changed, 38 insertions(+), 20 deletions(-)
>
Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>
Thanks,
Maxime
More information about the dev
mailing list