From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id AA5835A58 for ; Tue, 9 Jun 2015 06:05:27 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP; 08 Jun 2015 21:05:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,577,1427785200"; d="scan'208";a="723578895" Received: from irsmsx154.ger.corp.intel.com ([163.33.192.96]) by fmsmga001.fm.intel.com with ESMTP; 08 Jun 2015 21:05:24 -0700 Received: from irsmsx106.ger.corp.intel.com ([169.254.8.76]) by IRSMSX154.ger.corp.intel.com ([169.254.12.182]) with mapi id 14.03.0224.002; Tue, 9 Jun 2015 05:05:24 +0100 From: "Long, Thomas" To: "Xie, Huawei" , "dev@dpdk.org" Thread-Topic: [PATCH 0/2] vhost: numa aware allocation of virtio_net device and vhost virt queue Thread-Index: AQHQnz2a2c8/cDYUNkK3Iz7KGUbO6p2jlHsQ Date: Tue, 9 Jun 2015 04:05:23 +0000 Message-ID: References: <1432778661-25428-1-git-send-email-huawei.xie@intel.com> <1433474005-597-1-git-send-email-huawei.xie@intel.com> In-Reply-To: <1433474005-597-1-git-send-email-huawei.xie@intel.com> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH 0/2] vhost: numa aware allocation of virtio_net device and vhost virt queue 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, 09 Jun 2015 04:05:28 -0000 Acked-by: Tommy Long -----Original Message----- From: Xie, Huawei=20 Sent: Friday, June 5, 2015 4:13 AM To: dev@dpdk.org Cc: Long, Thomas Subject: [PATCH 0/2] vhost: numa aware allocation of virtio_net device and = vhost virt queue The virtio_net device and vhost virt queue should be allocated on the same = numa node as vring descriptors. When we firstly allocate the virtio_net device and vhost virt queue, we don= 't know the numa node of vring descriptors. When we receive the VHOST_SET_VRING_ADDR message, we get the numa node of v= ring descriptors, so we will try to reallocate virtio_net and vhost virt qu= eue to the same numa node. Huawei Xie (2): use rte_malloc/free for virtio_net and virt_queue memory data allocation/= free When we get the address of vring descriptor table, will try to reallocate= virtio_net device and virtqueue to the same numa node. config/common_linuxapp | 1 + lib/librte_vhost/Makefile | 4 ++ lib/librte_vhost/virtio-net.c | 112 ++++++++++++++++++++++++++++++++++++++= ---- mk/rte.app.mk | 3 ++ 4 files changed, 111 insertions(+), 9 deletions(-) --=20 1.8.1.4