[dpdk-dev] [PATCH v2 2/3] vhost: simplify numa_realloc

2015-12-22 Thread Yuanhan Liu
We could first check if we need realloc vq or not, if so, reallocate it. We then do similar to vhost dev realloc. This could get rid of the tons of repeated "if (realloc_dev)" and "if (realloc_vq)" statements, therefore, makes code a bit more readable. Signed-off-by: Yuanhan Liu --- v2: fix deb

[dpdk-dev] [PATCH v2 2/3] vhost: simplify numa_realloc

2015-12-22 Thread Xie, Huawei
On 12/22/2015 3:27 PM, Yuanhan Liu wrote: > We could first check if we need realloc vq or not, if so, > reallocate it. We then do similar to vhost dev realloc. > > This could get rid of the tons of repeated "if (realloc_dev)" > and "if (realloc_vq)" statements, therefore, makes code > a bit more re