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 C6163A0546; Tue, 6 Apr 2021 17:57:46 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9A439141237; Tue, 6 Apr 2021 17:57:46 +0200 (CEST) Received: from mail-qk1-f174.google.com (mail-qk1-f174.google.com [209.85.222.174]) by mails.dpdk.org (Postfix) with ESMTP id ADBA6141236 for ; Tue, 6 Apr 2021 17:57:45 +0200 (CEST) Received: by mail-qk1-f174.google.com with SMTP id x11so15393415qkp.11 for ; Tue, 06 Apr 2021 08:57:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=YF4FTi335beasZ51RRwsitKXnw3I3+1IPOsOLZvNXGs=; b=FmYZACIPOsktX9CmpwJEOVJ00Bxch8uNwNpfO+iKa+G3dyI0usIznKn2C57KVcVWSr P1NGoSAjibf9oR+TqCsw0Jm3c0NS5H/bengNXUOxTcLneCmV3qf2GVubLZYj1VTGs/lX C2uYv9b/FBb/OYluWy4JOC467kvY5/IF5fV5SKkZWoE0fazlVkeNOm3+EQ6jzNIdmTVi HGex9BpueaJ8FjOcFxj5JdiK7+Hnw7ZwGj6EHHUY3wJcdBa4SqlSjNZzmr8prziIo1c1 XnFo8Xdq2YCxcxmEWZSHbWkLNf3ERrgHKvo8Nqn0wtX1OB0bCWHuPjz4Jq3mTxfS1Vi4 HVeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=YF4FTi335beasZ51RRwsitKXnw3I3+1IPOsOLZvNXGs=; b=coVN344P2QCHCNDk1WMx1sEW0IPEk0dWUa1BpfM+99AK6ptQghsUGOlgtor3VYyOMk +dnkSsYlFa+31szVk3gmSpWeOiUgmnfC+BA/YWqNXjRSX2eSyk5DbkMYduwfZi/Q4aki AdsluHRLrM6c8j66XqxZysSsUIcteT6G+v5MZR2c82D1LOigkypGMrABHPZJQYr1sp81 laSvW35eZ/F91YxBK7jMLrC9MZ2khP5p1IW/J1wzUcq0ZQMJybCLbSjP3z8MnUgAxbCV nUw8HD50uoUPvDwuReaElYGcJRcSNaINS5DTnuViWDe0FMxnMXg4/YEJNtI5nrVkMV/y Auuw== X-Gm-Message-State: AOAM532A66H6xdmeJ1uBUiHvfjncOoYLNM6qQ+K7naQAMmtwuOl52Tej VZGu5rI2asXc6rMOc8lgPWY= X-Google-Smtp-Source: ABdhPJzb0oohHWmI/lYycEhHgds6clU6BlzVSaPEv3CVBeMhxuQFjLgi+rpYDL2JgrXG+lMDXVLbOQ== X-Received: by 2002:a37:a48c:: with SMTP id n134mr30939329qke.490.1617724665236; Tue, 06 Apr 2021 08:57:45 -0700 (PDT) Received: from localhost.localdomain (bras-base-hullpq2034w-grc-18-74-15-213-92.dsl.bell.ca. [74.15.213.92]) by smtp.gmail.com with ESMTPSA id z2sm16754366qkg.22.2021.04.06.08.57.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Apr 2021 08:57:44 -0700 (PDT) From: Luc Pelletier To: olivier.matz@6wind.com, jianfeng.tan@intel.com, Honnappa.Nagarahalli@arm.com Cc: dev@dpdk.org Date: Tue, 6 Apr 2021 11:57:26 -0400 Message-Id: <20210406155726.101986-1-lucp.at.work@gmail.com> In-Reply-To: <20210324130422.92357-1-lucp.at.work@gmail.com> References: <20210324130422.92357-1-lucp.at.work@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v3] eal: fix possible UB on creation of ctrl thread 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" Hi Olivier, Hi Honnappa, Thanks for your input Honnappa. I've made the changes to completely remove the barrier. However, I have not moved the call to pthread_setaffinity_np to the control thread; I think we still want to report the result of this function to the caller of rte_ctrl_thread_create and doing so from ctrl_thread_init would be a lot trickier.