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 D752243074; Tue, 15 Aug 2023 19:49:11 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 64F374114B; Tue, 15 Aug 2023 19:49:11 +0200 (CEST) Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) by mails.dpdk.org (Postfix) with ESMTP id AE2C6410ED for ; Tue, 15 Aug 2023 19:49:09 +0200 (CEST) Received: by mail-pg1-f177.google.com with SMTP id 41be03b00d2f7-55b0e7efb1cso3261218a12.1 for ; Tue, 15 Aug 2023 10:49:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1692121749; x=1692726549; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=QrG/SPzFu7tRGNxE2i788bQp+PNfVPsnHYaBOYRZKTY=; b=JKm6vyuacCf//1P/rjmmZ7WRGj03Bt/N739mBm2Po2aKXGxql73DYQlOoTbg8BJz/M nZwHMYFwTjT7cRK2d5YXTaScPWGjxwTm+kRekUO4TmfoYkP2P0sXNCv5UQ+9pxtigMtM MpI2WifKKUZijIb3R97Io8KL4jiXelWIBvBuFUlh+UyJmfcbjEP9y7TEzJzP1F3qPIte F9m/kd9zHZwp1w55VmmQhF/vDqO9vm/16Jgd2Vs5fAlSKBiwOpyuLJaYrjTsss1VSdwg eLVHJ4p06ANq486GCqwBMev4W3Auub60i2u7DUQNWfsqUG4y6b/XmsgSY2mMNFEMibqa IReA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692121749; x=1692726549; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QrG/SPzFu7tRGNxE2i788bQp+PNfVPsnHYaBOYRZKTY=; b=VOZy065SR93vU+bOmfurG1OS20h2H7qz3WDkGOZMldaXuKAcH7fiJFDbfMfht0bMrR sTif3omVpgjUnsauA+LLihD2VYsgOTfZhEx6yScLRk3UVrDLVkwAvmVbZfMSDk+d5dk0 xD4Z4COG9d8XQ0iVBvhS4XG8RJRi6t+jHJSyeEpJzPtiIJ9urdImfRFLH6iFusLkyIt+ Fl5KRBH6rKhsMZjrE0cMjl/ePcm/m6ah2PW2YO+CSdECsXLMYULkPBnm1vmwsia3VyX+ iCw6xqENaYnK1MdK0MdA9MiaSuhpy6T/SdnHuR4txF18aY/codxqnZP9Ai0ILDtpDwqM AyeA== X-Gm-Message-State: AOJu0YwILKR+ib1hz21y5w0byWpSuyUSDt8EUZyFTDNCyNSy7toOZDzW iJ5VX8MHr1fofZa4xlOBgix1xQ== X-Google-Smtp-Source: AGHT+IE39nHcddKLvQB6kFZvo8tA3psFTPOLgGpwLIBCQqvMXN1dFsMrG2PtegkYuQ5VMhkCx7ad0A== X-Received: by 2002:a17:90a:fe14:b0:268:5f1a:ede1 with SMTP id ck20-20020a17090afe1400b002685f1aede1mr9333402pjb.36.1692121748708; Tue, 15 Aug 2023 10:49:08 -0700 (PDT) Received: from hermes.local (204-195-127-207.wavecable.com. [204.195.127.207]) by smtp.gmail.com with ESMTPSA id gp22-20020a17090adf1600b00265a7145fe5sm11712998pjb.41.2023.08.15.10.49.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Aug 2023 10:49:08 -0700 (PDT) Date: Tue, 15 Aug 2023 10:49:06 -0700 From: Stephen Hemminger To: okaya@kernel.org Cc: dev@dpdk.org, Graham Whyte Subject: Re: [PATCH v4 2/8] eal: fixes for re-initialization issues Message-ID: <20230815104906.4e55df8b@hermes.local> In-Reply-To: <20230815145023.1386003-3-okaya@kernel.org> References: <20230815145023.1386003-1-okaya@kernel.org> <20230815145023.1386003-3-okaya@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 On Tue, 15 Aug 2023 10:50:17 -0400 okaya@kernel.org wrote: > +static uint32_t run_once; > + > int > eal_clean_runtime_dir(void) > { > @@ -505,6 +507,7 @@ eal_parse_socket_arg(char *strval, volatile uint64_t *socket_arg) > socket_arg[i] = val; > } > > + __atomic_store_n(&run_once, 0, __ATOMIC_RELAXED); > return 0; Interesting, other flags don't use atomic. Why here? And is already set elsewhere?