From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [dpdk-stable] [PATCH v2] eal: fix check when retrieving current cpu affinity Date: Thu, 07 Mar 2019 16:36:05 +0100 Message-ID: <4580955.3nGxzKOxPX@xps> References: <1550150874-9535-1-git-send-email-david.marchand@redhat.com> <1550608693-12882-1-git-send-email-david.marchand@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: stable@dpdk.org, "Burakov, Anatoly" , dev@dpdk.org To: David Marchand Return-path: In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 20/02/2019 17:02, Burakov, Anatoly: > On 19-Feb-19 8:38 PM, David Marchand wrote: > > pthread_getaffinity_np returns a >0 value when failing. > > > > This is mainly for the sake of correctness. > > The only case where it could fail is when passing an incorrect cpuset > > size wrt to the kernel. > > > > Fixes: 2eba8d21f3c9 ("eal: restrict cores auto detection") > > Cc: stable@dpdk.org > > Signed-off-by: David Marchand > > Reviewed-by: Anatoly Burakov Applied, thanks