On Tue, Jun 15, 2021 at 10:43 AM Maxime Coquelin <maxime.coque...@redhat.com> 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 = rte_realloc_socket(vq->resubmit_inflight, sizeof(*ri), > 0, node); > + if (!ri) { > + VHOST_LOG_CONFIG(ERR, "Failed to realloc resubmit > inflight on node %d\n", > + node); > + return dev; > + } > + vq->resubmit_inflight = ri; > + > + if (vq->resubmit_inflight) {
Quick first pass, I'll review more thoroughly the whole series later. I suppose you want to test ri->resubmit_list != NULL (else, this test is unnecessary since we made sure ri != NULL earlier). > + struct rte_vhost_resubmit_desc *rd; > + > + rd = rte_realloc_socket(ri->resubmit_list, > sizeof(*rd) * ri->resubmit_num, > + 0, node); > + if (!ri) { > + VHOST_LOG_CONFIG(ERR, "Failed to realloc > resubmit list on node %d\n", > + node); > + return dev; > + } > + ri->resubmit_list = rd; > + } > + } > + > vq->numa_node = node; -- David Marchand