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 C5C26426A4; Mon, 2 Oct 2023 18:07:19 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AC84540294; Mon, 2 Oct 2023 18:07:19 +0200 (CEST) Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) by mails.dpdk.org (Postfix) with ESMTP id 138D44003C for ; Mon, 2 Oct 2023 18:07:18 +0200 (CEST) Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-1c364fb8a4cso150195005ad.1 for ; Mon, 02 Oct 2023 09:07:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1696262838; x=1696867638; darn=dpdk.org; 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=5tCd7v7rEPxz+OaIuF+qwzthZ94pNNmMAwN/eXIHxEY=; b=KQddIvQkNiI5NQRWT7azw1d6hOyMh2fSPvzkIThAH+B3AmUSK4NLV981lQQ7JonXt0 /zw+AXwLmyXIg6ix8S3Lb0bcI2i0N+BEpUNPz/eM1TPPRZsqhOH11T7Nri4smPmyXkaB 5SHtZYxeh8T7IXb34BgLGqJO3X21SsAxM6UvhBcpE4kcZ9AbeeqTZeCXE+CU0ch9a1V/ sQ8pA8a9XJHfzWuJQzq718wEYdGdatul85y7nq5eyCWt+RACcfce4n6l14/QlNMdHZSx hkBldHrCgFU8Z0kQOPaOnH5hG+ICk0EUKG3CmxldNffQGf441+u/tsQsOG6d8iR4CA67 XlVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696262838; x=1696867638; 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=5tCd7v7rEPxz+OaIuF+qwzthZ94pNNmMAwN/eXIHxEY=; b=Ia/rYcT1RCx78nt/KlOIqIXrRG169esG9VvuySiyiVKnZJWK3CzMER010EqK3mwC/x zy3lZGZXjf08w0+RwM7LpcyWhEA85LkdkOJ9MxReQbC4xq1M2C8oTTBIIemndtkcralK udgWlJ84m4RXDm470b7Ln4eHoJZoaJpu3LSWnF9HT6U5OVbEHtTNw5SzG7Arqv2II/l3 VhCYebPO3To40E9X4NP/n9M4WzPnpHuqzTBnmvkzmoz1Y3AWnfModAuPOHkyIK9SXTjx fiohfzew9GkpFZJ/DWCu18Ge0GF9C5QmXfFmjGJRcBfmD3HSKq2lg546V5QORanMVZXF nK6w== X-Gm-Message-State: AOJu0YyYdrdns+GFlvhtbmfSAqPPFGzeG/tEKl2anSbXhgFYIEjGgbi+ Onrt7SgAMf1J9wPoNzfytYJDWg== X-Google-Smtp-Source: AGHT+IG4VoBAVGvRAshWV9MLLIOrn7bRMRAN1wu4vIx4wklgGjfYuoWAhfn4FdU8Pqk0vzfa4mfU2w== X-Received: by 2002:a17:902:e805:b0:1c5:ecff:1bc7 with SMTP id u5-20020a170902e80500b001c5ecff1bc7mr16765235plg.4.1696262838090; Mon, 02 Oct 2023 09:07:18 -0700 (PDT) Received: from hermes.local (204-195-126-68.wavecable.com. [204.195.126.68]) by smtp.gmail.com with ESMTPSA id iw15-20020a170903044f00b001c5d09e9437sm22241582plb.25.2023.10.02.09.07.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 09:07:17 -0700 (PDT) Date: Mon, 2 Oct 2023 09:07:15 -0700 From: Stephen Hemminger To: Mattias =?UTF-8?B?UsO2bm5ibG9t?= Cc: dev@dpdk.org, mattias.ronnblom@ericsson.com, Morten =?UTF-8?B?QnLDuHJ1?= =?UTF-8?B?cA==?= , Bruce Richardson Subject: Re: [PATCH v2 1/2] random: initialize the random state for non-EAL threads Message-ID: <20231002090715.3749033e@hermes.local> In-Reply-To: <4a0cc5ff-a8e3-79cf-0190-09a4de2f1e9a@lysator.liu.se> References: <20230906155302.82749-1-stephen@networkplumber.org> <20230907152456.20570-1-stephen@networkplumber.org> <20230907152456.20570-2-stephen@networkplumber.org> <4a0cc5ff-a8e3-79cf-0190-09a4de2f1e9a@lysator.liu.se> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 Mon, 2 Oct 2023 14:27:48 +0200 Mattias R=C3=B6nnblom wrote: > On 2023-09-07 17:24, Stephen Hemminger wrote: > > The per-lcore PRNG was not initializing the rand_state of all > > the lcores. Any usage of rte_random by a non-EAL lcore would =20 >=20 > "/../ by an unregistered non-EAL thread /../" >=20 > > use rand_states[RTE_MAX_LCORE] which was never initialized. Sure, that is a more precise wording.