vhost: allocate and free packets in bulk in Tx split
authorBalazs Nemeth <bnemeth@redhat.com>
Tue, 8 Jun 2021 11:41:11 +0000 (13:41 +0200)
committerChenbo Xia <chenbo.xia@intel.com>
Wed, 23 Jun 2021 07:55:34 +0000 (09:55 +0200)
commit242695f6122af7bd42f1cbadf615dfece7b95089
treeac368ce71465c72aeccc41174d132b3230171df9
parentcf412ff7e978cacbb4228fb74248f16563c74861
vhost: allocate and free packets in bulk in Tx split

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 <bnemeth@redhat.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/vhost/virtio_net.c