vhost: improve NUMA reallocation
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Tue, 29 Jun 2021 16:11:31 +0000 (18:11 +0200)
committerChenbo Xia <chenbo.xia@intel.com>
Wed, 30 Jun 2021 11:32:13 +0000 (13:32 +0200)
commit97b4e3b1d05c4d3ebbbb985d469079c2878c10b3
tree3621d622a973570d40b2c62795ec60ee41d46073
parent6305dfeff4c4644f1091a5e270cdbf989f48e15e
vhost: improve NUMA reallocation

This patch improves the numa_realloc() function by making use
of rte_realloc_socket(), which takes care of the memory copy
and freeing of the old data.

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