vhost: use DPDK allocations for in-flight data
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Tue, 29 Jun 2021 16:11:33 +0000 (18:11 +0200)
committerChenbo Xia <chenbo.xia@intel.com>
Wed, 30 Jun 2021 11:32:38 +0000 (13:32 +0200)
commitb3d4a18b9c3ef2a1a4e39ff9e926c61b5e35f8e4
treeddcd5d13acf81c7c1c627901c895998f5df539b3
parentb81c93466df0c19ec3a07690b8bca64d257142eb
vhost: use DPDK allocations for in-flight data

Inflight metadata are allocated using glibc's calloc.
This patch converts them to rte_zmalloc_socket to take
care of the NUMA affinity.

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
lib/vhost/vhost.c
lib/vhost/vhost_user.c