Re: [dpdk-dev] [PATCH v2 6/6] vhost: convert inflight data to DPDK allocation API

2021-06-15 Thread Maxime Coquelin
On 6/15/21 11:25 AM, David Marchand wrote: > On Tue, Jun 15, 2021 at 10:43 AM Maxime Coquelin > wrote: >> @@ -559,6 +559,31 @@ numa_realloc(struct virtio_net *dev, int index) >> vq->log_cache = lc; >> } >> >> + if (vq->resubmit_inflight) { >> + struct

Re: [dpdk-dev] [PATCH v2 6/6] vhost: convert inflight data to DPDK allocation API

2021-06-15 Thread David Marchand
On Tue, Jun 15, 2021 at 10:43 AM Maxime Coquelin wrote: > @@ -559,6 +559,31 @@ numa_realloc(struct virtio_net *dev, int index) > vq->log_cache = lc; > } > > + if (vq->resubmit_inflight) { > + struct rte_vhost_resubmit_info *ri; > + > + ri =

[dpdk-dev] [PATCH v2 6/6] vhost: convert inflight data to DPDK allocation API

2021-06-15 Thread Maxime Coquelin
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 --- lib/vhost/vhost.c | 4 +-- lib/vhost/vhost_user.c | 67 +++--- 2 files changed, 58