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 19AF141C5F; Fri, 10 Feb 2023 12:45:13 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 924D540EE6; Fri, 10 Feb 2023 12:45:12 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 6CBD240687 for ; Fri, 10 Feb 2023 12:45:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1676029510; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PUFQltsCqqLcwo3LIQjSbi2YF8TttYoapE0W9llWK38=; b=jDnPWRB4RJyGv0Rw+NDllu6Qc4yrP9X6qD4R4azo2+URQ1h2FwHbDfzj/h2m0dSt2+ChC0 qn1xMQD3Ho6SOMqjzgO0VaA1SYHE0EpB3gUUUEoHwAuuEq7fW6LS06JVPvgUPyPna64NBO VWLj01cSWS07EqvTMKf1o3l+vaZJrhI= Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-75--LEixCnpO1GX5V86Ia9O4Q-1; Fri, 10 Feb 2023 06:45:09 -0500 X-MC-Unique: -LEixCnpO1GX5V86Ia9O4Q-1 Received: by mail-pl1-f200.google.com with SMTP id ji6-20020a170903324600b00199420887b0so2909187plb.3 for ; Fri, 10 Feb 2023 03:45:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PUFQltsCqqLcwo3LIQjSbi2YF8TttYoapE0W9llWK38=; b=Oxhhy09t1qCGNKfIZ5m57vFm2OTOkj+5+2WSfQuxBceB1wGaEMIYaSxbygZAUWQiq8 3Y+HvlMDHtQMI6BRHpmsznmVQuZjw224Wvx5cr0D+WQOkMKH7fOVo6I1+N3x+t+QNi2V BK2AQpuYP1BJW/b7Qzjzucc8/eoKFqLPFGEQvYGsb59p/KWPUyARBU21wCSK9+vONDVj FD7VMy0e2pZZlxOq4HHp/F2w/Dq/vzhsOZVbaLlcPWMLvl0kEEN7OTTX0VRv2ojNFyPc UT4TGJBAMzCEUQKx5psiNhjTqkP2v3j7TnJGO+UzsZWwXFw7vXAgTLJ6xcUKMuGjlFDc NDfg== X-Gm-Message-State: AO0yUKUSMyTiulV7rQQYEH6xzr9VYfCQylYxIFDxkxcWmHcv39pQrG2m YkAf+/RZekfgFKf3WHseGKgafxslGkElrLNKVsQjXFfZkAH0AcUI/RcCOlGpX4XJou2nmaYYJou /M0SgqvrDJ4NtLkuGEm4= X-Received: by 2002:a17:90b:78a:b0:230:fd8a:de61 with SMTP id l10-20020a17090b078a00b00230fd8ade61mr2533530pjz.83.1676029508422; Fri, 10 Feb 2023 03:45:08 -0800 (PST) X-Google-Smtp-Source: AK7set8x2R2aTIZJJ8SICPbbiTcnoQqAsWAmfHbdZxR7Zxg2P9WazaB700qT6Zm4cagQ3rQqEy6uOrFNHtM6HNwQYB4= X-Received: by 2002:a17:90b:78a:b0:230:fd8a:de61 with SMTP id l10-20020a17090b078a00b00230fd8ade61mr2533526pjz.83.1676029508109; Fri, 10 Feb 2023 03:45:08 -0800 (PST) MIME-Version: 1.0 References: <20221205100334.3500-1-mattias.ronnblom@ericsson.com> In-Reply-To: <20221205100334.3500-1-mattias.ronnblom@ericsson.com> From: David Marchand Date: Fri, 10 Feb 2023 12:44:57 +0100 Message-ID: Subject: Re: [PATCH] eal: have unregistered non-EAL threads use dedicated PRNG To: =?UTF-8?Q?Mattias_R=C3=B6nnblom?= Cc: Thomas Monjalon , dev@dpdk.org X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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, Dec 5, 2022 at 11:08 AM Mattias R=C3=B6nnblom wrote: > > Prior to this change, unregistered non-EAL threads shared a PRNG > instance with the main lcore. The main lcore may well be used for fast > path processing, potentially making rte_rand() calls in the > process. It should not need to synchronize with control threads. > > With this change, all unregistered non-EAL threads share one dedicated > PRNG instance. > > The API documentation is updated to use the proper terminology when > referring to threads equipped with an lcore id. > > Signed-off-by: Mattias R=C3=B6nnblom Acked-by: Morten Br=C3=B8rup Applied, thanks. --=20 David Marchand