From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by dpdk.org (Postfix) with ESMTP id DA5DF1E35 for ; Fri, 4 May 2018 16:16:27 +0200 (CEST) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5EC5581A438F; Fri, 4 May 2018 14:16:27 +0000 (UTC) Received: from [10.36.112.52] (ovpn-112-52.ams2.redhat.com [10.36.112.52]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7B5DF2166BAD; Fri, 4 May 2018 14:16:26 +0000 (UTC) To: Jianfeng Tan , dev@dpdk.org Cc: tiwei.bie@intel.com, zhiyong.yang@intel.com References: <1524756847-141034-1-git-send-email-jianfeng.tan@intel.com> From: Maxime Coquelin Message-ID: <93091a71-5121-9268-e0ea-7dce394fa03b@redhat.com> Date: Fri, 4 May 2018 16:16:24 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <1524756847-141034-1-git-send-email-jianfeng.tan@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Fri, 04 May 2018 14:16:27 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Fri, 04 May 2018 14:16:27 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'maxime.coquelin@redhat.com' RCPT:'' Subject: Re: [dpdk-dev] [PATCH] net/virtio-user: fix hugepage files enumeration X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 May 2018 14:16:28 -0000 On 04/26/2018 05:34 PM, Jianfeng Tan wrote: > After the commit 2a04139f66b4 ("eal: add single file segments option"), > one hugepage file could contain multiple hugepages which are further > mapped to different memory regions. > > Original enumeration implementation cannot handle this situation. > > This patch filters out the duplicated files; and adjust the size after > the enumeration. > > Fixes: 6a84c37e3975 ("net/virtio-user: add vhost-user adapter layer") > > Signed-off-by: Jianfeng Tan > --- > .../howto/virtio_user_for_container_networking.rst | 3 ++- > drivers/net/virtio/virtio_user/vhost_user.c | 28 ++++++++++++++++++++-- > 2 files changed, 28 insertions(+), 3 deletions(-) Acked-by: Maxime Coquelin Thanks, Maxime