From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id DD823A0C4C; Tue, 12 Oct 2021 21:03:25 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AF24E410E8; Tue, 12 Oct 2021 21:03:25 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 1A123410E7 for ; Tue, 12 Oct 2021 21:03:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1634065404; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=u9UMcoITDy/+mfbHIdjDy4BdVMhQywVg6qRmZmEJJ8s=; b=Dvol2dTf6+wEfymzaQZXth8Zw7UG3nEbqezC1Yws0KUZX8yq3gKphRDLQG5k+MZOhvE/rz n9FMz3+eTDlpQN200aaJvEB/2er9/7NlYqiaHleNBkzsHcTSar5jgjMfX3M/vFOl7nnQLf o5iXVehlMkyDSWJRezZD66QGqgWpqLU= Received: from mail-io1-f71.google.com (mail-io1-f71.google.com [209.85.166.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-492-Gv2IPWNXNY-f1Nld6Tsigw-1; Tue, 12 Oct 2021 15:03:23 -0400 X-MC-Unique: Gv2IPWNXNY-f1Nld6Tsigw-1 Received: by mail-io1-f71.google.com with SMTP id n4-20020a6b7204000000b005dc1172e91fso42409ioc.6 for ; Tue, 12 Oct 2021 12:03:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=u9UMcoITDy/+mfbHIdjDy4BdVMhQywVg6qRmZmEJJ8s=; b=5gXhWSRF89LSY5fjl55au7PU0QpMKYu3jB6RpctnOfj+zJYg4W0dhwzrSSlayU0sPE VmywtG5jMLfKiJ8FCW/2/OfiNxMdf81cH4NRAXawGBjiARcyufng8SOWncJLfXWjX4CD J2CRnoeg3mCZdiYnAOdHXYz44oSn/1TJTSUJEQF6L9cOMDKoYVqnU/RKWSVKWGJyFD5h gC9xKVp6u8Lhe7vwWnCc1P4JJRCNq5/yIJGZx4drSf1w6bv4lMyuJtx6nw7BW2c4g8G4 DSXEYuHbFKay4x4L9xkpZAu9Sq0Lp897izRPGJjX0wvJFtPrjxfdpgU+STsmHq4YzMRj sL5g== X-Gm-Message-State: AOAM5325jsMoZK3Fht7cIjJlecvVWRiudVJLbEVdjofLpQ+6REINRasA c9VhwbKzvanVIXuUekVkky3rye9uo07zlR7HpArbrBlkzLhY21+u+SeGLIi9Qms3YiwCVlpxaSP TQfp69kWpOAQs0F1QXiM= X-Received: by 2002:a05:6e02:1588:: with SMTP id m8mr25488441ilu.188.1634065402594; Tue, 12 Oct 2021 12:03:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8LnXgmrr+4OM4Qh//DdrDcuROTx9qOOo0WxocRMi7WItM0BDOxbOqSzkOEl1wFfuJzoH0FbUY1Xbtwni2ScY= X-Received: by 2002:a05:6e02:1588:: with SMTP id m8mr25488400ilu.188.1634065402039; Tue, 12 Oct 2021 12:03:22 -0700 (PDT) MIME-Version: 1.0 References: <20211012160520.1276061-1-john.levon@nutanix.com> In-Reply-To: <20211012160520.1276061-1-john.levon@nutanix.com> From: David Marchand Date: Tue, 12 Oct 2021 21:03:09 +0200 Message-ID: To: John Levon Cc: dev , "Burakov, Anatoly" , Dmitry Kozlyuk , Thomas Monjalon Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH] eal/linux: allow hugetlbfs sub-directories X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list 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 Tue, Oct 12, 2021 at 6:06 PM John Levon wrote: > > get_hugepage_dir() was implemented in such a way that a --huge-dir > option had to exactly match the mountpoint, but there's no reason for > this restriction: DPDK might not be the only user of hugepages, and > shouldn't assume it owns an entire mountpoint. For example, if I have > /dev/hugepages/myapp, and /dev/hugepages/dpdk, I should be able to > specify: > > --huge-dir=/dev/hugepages/dpdk/ > > and have DPDK only use that sub-directory. > > Fix the implementation to allow a sub-directory within a suitable > hugetlbfs mountpoint to be specified, preferring the closest match. > > Signed-off-by: John Levon > Acked-by: Dmitry Kozlyuk Reviewed-by: David Marchand Applied, thanks. > diff --git a/doc/guides/rel_notes/release_21_11.rst b/doc/guides/rel_notes/release_21_11.rst > index 54718ff367..9fe689356b 100644 > --- a/doc/guides/rel_notes/release_21_11.rst > +++ b/doc/guides/rel_notes/release_21_11.rst > @@ -154,7 +159,6 @@ New Features > * Added tests to verify tunnel header verification in IPsec inbound. > * Added tests to verify inner checksum. > > - Restored this empty line: sections in doc are separated with two empty lines. > Removed Items > ------------- > -- David Marchand