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 CB6B12B82 for ; Fri, 4 May 2018 17:09:11 +0200 (CEST) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 50255429F3A9; Fri, 4 May 2018 15:09:11 +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 793812017F00; Fri, 4 May 2018 15:09:10 +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: Date: Fri, 4 May 2018 17:09:09 +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.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Fri, 04 May 2018 15:09:11 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Fri, 04 May 2018 15:09:11 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.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 15:09:12 -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(-) > Applied to dpdk-next-virtio/master. Thanks, Maxime