From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.tuxdriver.com (charlotte.tuxdriver.com [70.61.120.58]) by dpdk.org (Postfix) with ESMTP id AB2D51AFFF for ; Mon, 2 Apr 2018 21:32:50 +0200 (CEST) Received: from cpe-2606-a000-111b-40b7-640c-26a-4e16-9225.dyn6.twc.com ([2606:a000:111b:40b7:640c:26a:4e16:9225] helo=localhost) by smtp.tuxdriver.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1f35C4-0001ZG-BU; Mon, 02 Apr 2018 15:32:46 -0400 Date: Mon, 2 Apr 2018 15:32:07 -0400 From: Neil Horman To: Thomas Monjalon Cc: dev@dpdk.org, Ferruh Yigit , Solal Pirelli , solal.pirelli@gmail.com Message-ID: <20180402193207.GA32677@hmswarspite.think-freely.org> References: <20180402120619.30404-1-nhorman@tuxdriver.com> <2880455.xF8ZZNx2Pu@xps> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2880455.xF8ZZNx2Pu@xps> User-Agent: Mutt/1.9.2 (2017-12-15) X-Spam-Score: -2.9 (--) X-Spam-Status: No Subject: Re: [dpdk-dev] [PATCH] linuxapp eal: set fd to -1 for MAP_ANONYMOUS cases 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: Mon, 02 Apr 2018 19:32:51 -0000 On Mon, Apr 02, 2018 at 06:50:12PM +0200, Thomas Monjalon wrote: > 02/04/2018 14:06, Neil Horman: > > https://dpdk.org/tracker/show_bug.cgi?id=18 > > I really appreciate reading such bug request. No worries. It was there, I had time :) > Maybe we should add a Suggested-by line > Suggested-by: Solal Pirelli > before the SoB line (chronological order). > Philisophically, I'm not opposed, feel free to add it in during the commit. That said, I'm not sure its overly needed, given that the bz is referenced, and one can follow the documentation trail to the individual that opened the bug report. Neil > > > Indicated that several mmap call sites in the linuxapp eal code used an > > fd that was not -1 in their calls while using MAP_ANONYMOUS. While > > probably not a huge deal, the man page does say the fd should be -1 for > > portability, as some implementations don't ignore fd as they should for > > MAP_ANONYMOUS, and seting -1 here allows us to eliminate some code. > > > > Signed-off-by: Neil Horman > > CC: Thomas Monjalon > > CC: Ferruh Yigit > > > >