From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com [209.85.212.171]) by dpdk.org (Postfix) with ESMTP id 9987CC33C for ; Mon, 29 Jun 2015 19:05:36 +0200 (CEST) Received: by wicgi11 with SMTP id gi11so78144989wic.0 for ; Mon, 29 Jun 2015 10:05:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=9ft9eXZ8EqKxM4EXP5P3Sy8g+rDhJ3GBKRDElqchduA=; b=lahHCJJGMYK5AqT1NLdms18ZowTWXsAVKW8rf/MpbKmIsMWU2YPnzeDDJABi/rMNc4 ux0Hw2nxycldcbG5u1ZfPwjp45k97RKMTNk6KuNpFBfiLloaxGpCXRuJJwA56BtRq+PE a3mHIoxNEJ1SWP8cu6wRj4uMMgFeEGbk53R0f6GzeEDTxgVuw/9LCa1zUuDOyucH+qeF Ocy+E+manhYodyiHszQtS01W6HAOO+gxf4/ud4shEcAEWhKo05VM02aa9WnEzgRhh1gH cAwRFt4xkLRM9uBSqi+2/buSIirHRN8V3nuyJUr86xR6RZw9/GKyKPffao22cz64d5N0 6ZyA== X-Gm-Message-State: ALoCoQnP3XV6iDkBu5CB8eQwqfCRMeOvbVR+qJ0LE5Ym9cLWWLNwjLtOppbegbLWvjBHuF6FHHy9 X-Received: by 10.195.17.199 with SMTP id gg7mr32424874wjd.121.1435597536389; Mon, 29 Jun 2015 10:05:36 -0700 (PDT) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by mx.google.com with ESMTPSA id dz4sm13048086wib.17.2015.06.29.10.05.34 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jun 2015 10:05:35 -0700 (PDT) From: Thomas Monjalon To: Huawei Xie Date: Mon, 29 Jun 2015 19:04:26 +0200 Message-ID: <9147402.4RVkC3Hq2T@xps13> Organization: 6WIND User-Agent: KMail/4.14.8 (Linux/4.0.4-2-ARCH; KDE/4.14.8; x86_64; ; ) In-Reply-To: <1435211257-27310-1-git-send-email-huawei.xie@intel.com> References: <1434646796-23101-1-git-send-email-huawei.xie@intel.com> <1435211257-27310-1-git-send-email-huawei.xie@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v3 0/2] vhost: numa aware allocation of vhost device and queues 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: Mon, 29 Jun 2015 17:05:36 -0000 2015-06-25 13:47, Huawei Xie: > The vhost device and queues should be allocated on the same numa node as vring descriptor table. > When we firstly allocate the vhost device and queues, we don't know the numa node of vring descriptor table. > When we receive the VHOST_SET_VRING_ADDR message, we get the numa node of vring descriptor table, we will try to reallocate vhost device and queues to the same numa node. Commit messages must be wrapped. > Huawei Xie (2): > use rte_malloc to allocate vhost device and queues > reallocate vhost device and queues when we get the address of vring descriptor table Applied, thanks