From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Coquelin Subject: Re: [PATCH] net/virtio-user: fix hugepage files enumeration Date: Fri, 4 May 2018 17:09:09 +0200 Message-ID: References: <1524756847-141034-1-git-send-email-jianfeng.tan@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: tiwei.bie@intel.com, zhiyong.yang@intel.com To: Jianfeng Tan , dev@dpdk.org 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) In-Reply-To: <1524756847-141034-1-git-send-email-jianfeng.tan@intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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