From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk1-f195.google.com (mail-vk1-f195.google.com [209.85.221.195]) by dpdk.org (Postfix) with ESMTP id 7C7361B47E for ; Thu, 14 Feb 2019 18:45:43 +0100 (CET) Received: by mail-vk1-f195.google.com with SMTP id v70so1593538vkv.7 for ; Thu, 14 Feb 2019 09:45:43 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4MNXqE75a6DTRO+HjYDPFC76TA97d7LktrgynRPL8xs=; b=BZn8PtZELmh+TU/7XVZD7/x7Vim9zDHMTjI65eqn0CeFoixpbgcVxBhN1M3I+qTTCU PCadvf5Tw6cVnfl2tyG8fXNBZlyCffFqzK8CXogcaInFpJ6sQGjvS0nQ8Yc+VvBrHZ5r 0w6PQwLX86scc0Da7Xh2mwXz/9q8+j4/4ZzyphN+44tV+Luh8dEoWucgaKLllnxudZ/c OYlkP/vlTvyVWXNCcniNuWvh/ApsLpM6hTfpskBdMHfo2ypYWMId+m+h6s7Y8DU15c8L uxWkBIKEhByN42lJ2WAmxaVp+W4I/q9e+5sSA4EvS0GdjIVpkF2c+c3Nm4nciT8TN5Sd SZ4A== X-Gm-Message-State: AHQUAuaNc9FPvWruZiaBk8dgOKrIiRdpc+BDoD0+EPCxZVz/MnGohFBe 3Qo5fbp9Xzs6kvvUuIsy9u/8O1ac9rZRlxdqXfnicA== X-Google-Smtp-Source: AHgI3IZ/8cbV45eL32Va5Z1uRZD2ZO2KZEiEGGv6lCBCoTm5FE5Xai0yasr64UtPMM3S8PD2zaFsjKNChtig2JRk214= X-Received: by 2002:a1f:35f:: with SMTP id 92mr2629970vkd.52.1550166342824; Thu, 14 Feb 2019 09:45:42 -0800 (PST) MIME-Version: 1.0 References: <1550074412-31285-1-git-send-email-david.marchand@redhat.com> <1550151042-9764-1-git-send-email-david.marchand@redhat.com> <32bd2385-b979-12f8-26ef-e03e28e53462@intel.com> In-Reply-To: <32bd2385-b979-12f8-26ef-e03e28e53462@intel.com> From: David Marchand Date: Thu, 14 Feb 2019 18:45:32 +0100 Message-ID: To: "Burakov, Anatoly" Cc: dev@dpdk.org, Olivier Matz , Kevin Traynor , dpdk stable Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-stable] [PATCH v2 1/2] eal: fix potential incorrect pinning for ctrl threads X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Feb 2019 17:45:43 -0000 On Thu, Feb 14, 2019 at 5:12 PM Burakov, Anatoly wrote: > On 14-Feb-19 1:30 PM, David Marchand wrote: > > pthread_setaffinity_np returns a >0 value on error. > > We could end up letting the ctrl threads on the current process cpu > > affinity. > > > > Fixes: d651ee4919cd ("eal: set affinity for control threads") > > Signed-off-by: David Marchand > > --- > > lib/librte_eal/common/eal_common_thread.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/lib/librte_eal/common/eal_common_thread.c > b/lib/librte_eal/common/eal_common_thread.c > > index 48ef4d6..a3985ce 100644 > > --- a/lib/librte_eal/common/eal_common_thread.c > > +++ b/lib/librte_eal/common/eal_common_thread.c > > @@ -209,7 +209,7 @@ static void *rte_thread_init(void *arg) > > CPU_SET(rte_get_master_lcore(), &cpuset); > > > > ret = pthread_setaffinity_np(*thread, sizeof(cpuset), &cpuset); > > - if (ret < 0) > > + if (ret) > > goto fail; > > > > ret = pthread_barrier_wait(¶ms->configured); > > > > CC: stable? > Yes, I again forgot to check with check-git-log.sh... -- David Marchand