From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 6BABF379E for ; Tue, 22 Dec 2015 15:40:15 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP; 22 Dec 2015 06:40:14 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,464,1444719600"; d="scan'208";a="712841828" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga003.jf.intel.com with ESMTP; 22 Dec 2015 06:40:11 -0800 Received: from fmsmsx158.amr.corp.intel.com (10.18.116.75) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 22 Dec 2015 06:40:11 -0800 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx158.amr.corp.intel.com (10.18.116.75) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 22 Dec 2015 06:40:11 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.190]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.92]) with mapi id 14.03.0248.002; Tue, 22 Dec 2015 22:40:09 +0800 From: "Xie, Huawei" To: Yuanhan Liu , "dev@dpdk.org" Thread-Topic: [PATCH v2 2/3] vhost: simplify numa_realloc Thread-Index: AdE8xqfCojSQYen8RHyrirPu0fYSTw== Date: Tue, 22 Dec 2015 14:40:08 +0000 Message-ID: References: <1450422247-6814-1-git-send-email-yuanhan.liu@linux.intel.com> <1450769304-22986-1-git-send-email-yuanhan.liu@linux.intel.com> <1450769304-22986-2-git-send-email-yuanhan.liu@linux.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v2 2/3] vhost: simplify numa_realloc X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Dec 2015 14:40:15 -0000 On 12/22/2015 3:27 PM, Yuanhan Liu wrote:=0A= > We could first check if we need realloc vq or not, if so,=0A= > reallocate it. We then do similar to vhost dev realloc.=0A= >=0A= > This could get rid of the tons of repeated "if (realloc_dev)"=0A= > and "if (realloc_vq)" statements, therefore, makes code=0A= > a bit more readable.=0A= >=0A= > Signed-off-by: Yuanhan Liu =0A= =0A= Acked-by: Huawei Xie =0A= [...]=0A=