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

2015-12-22 Thread Yuanhan Liu
On Tue, Dec 22, 2015 at 06:46:32AM +, Xie, Huawei wrote: > On 12/18/2015 3:03 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)" >

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

2015-12-22 Thread Xie, Huawei
On 12/18/2015 3:03 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

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

2015-12-18 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 --- lib/librte_