Re: [dpdk-dev] [PATCH] eal/linux: allow hugetlbfs sub-directories

2021-10-12 Thread John Levon
On Tue, Oct 12, 2021 at 09:03:09PM +0200, David Marchand wrote: > > 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_1

Re: [dpdk-dev] [PATCH] eal/linux: allow hugetlbfs sub-directories

2021-10-12 Thread David Marchand
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 entir

[dpdk-dev] [PATCH] eal/linux: allow hugetlbfs sub-directories

2021-10-12 Thread John Levon
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, an