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 71EA04234A; Tue, 10 Oct 2023 11:40:35 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4EB7F40297; Tue, 10 Oct 2023 11:40:35 +0200 (CEST) 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 7EAA840278 for ; Tue, 10 Oct 2023 11:40:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1696930832; 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=R0zYVYKY+pjP34LFgY8Ohp9gXL2UkGMXgJ8pYushty0=; b=ZNPqeuKXhmLTFgUZomDiFssZIfP5YKHP9VpWjlzMG6DNmwpTRbixfHHmBXx7Le4KYLtSCC gM+HfnoyC6xuYUIO1MRUnw2UVy/1joc287D2vUqhvbBTTH/HyNvDuhbAxuLmzUDclVIzou ZLDRfueZCTwtbMBfTgjSSOwauUW2iMY= Received: from mail-lf1-f71.google.com (mail-lf1-f71.google.com [209.85.167.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-41-oCUlmbznNMWRj2ebv9bXrg-1; Tue, 10 Oct 2023 05:40:31 -0400 X-MC-Unique: oCUlmbznNMWRj2ebv9bXrg-1 Received: by mail-lf1-f71.google.com with SMTP id 2adb3069b0e04-5041a72d2edso4877330e87.1 for ; Tue, 10 Oct 2023 02:40:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696930830; x=1697535630; 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=R0zYVYKY+pjP34LFgY8Ohp9gXL2UkGMXgJ8pYushty0=; b=H/g+edX9IHj0f5ZaBg2U05bB4KrgMlptFyV9OMpg0fXwfroQdIbW9/Y4hBrXeaq+/A FUEhRZJUzHGko2tKFJwTj2N55T5hJ2TleA9d90jSKh6brtkBJ1abP/4PVIJNdOP4yOza ov+MrdH4+VCClqkDqEn21dMto3H/sAtXDjhBr/KgEK8rBAL/Xhknb8Vxs9bOxTbe/5WY uF4TjpJY58eCJY1b9jUV3uLjQXQXZv4+CFYK34uqufT08DgD7sISAGKKCFoRsNcgoxEA yY7Fep9qqLvLOXYvm2nvGblB0NGavz6iFbigmLFdWP2F0oP3J+RtvVSdWL9osIZ67IDL zjCA== X-Gm-Message-State: AOJu0Yz1PzmsgVj/JUrw1clLpRoWMQWoZnLEiTcVy1cL0IZPLg3r7zPP XnBtY90PNsIL/f77hMF3GlPnjJ24AWGsp75U9OoMfyfofrGCpc9k1KdMdfy2HqRBA0//89QJLdV sM3agudCWLm+GU51sSKg= X-Received: by 2002:a05:6512:522:b0:501:bf30:714c with SMTP id o2-20020a056512052200b00501bf30714cmr16195864lfc.24.1696930830092; Tue, 10 Oct 2023 02:40:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE4L8eobwVEeK/EhasMcZTxl6bzxWNbdSJAPW31lBCe8dKFOqBflgf2WcJtRLhuZPKSJtyOyh80IQDxKAMxqcQ= X-Received: by 2002:a05:6512:522:b0:501:bf30:714c with SMTP id o2-20020a056512052200b00501bf30714cmr16195849lfc.24.1696930829677; Tue, 10 Oct 2023 02:40:29 -0700 (PDT) MIME-Version: 1.0 References: <20231004105449.367667-1-mattias.ronnblom@ericsson.com> <98CBD80474FA8B44BF855DF32C47DC35E9EEFD@smartserver.smartshare.dk> In-Reply-To: <98CBD80474FA8B44BF855DF32C47DC35E9EEFD@smartserver.smartshare.dk> From: David Marchand Date: Tue, 10 Oct 2023 11:40:17 +0200 Message-ID: Subject: Re: [PATCH] random: clarify PRNG MT safety guarantees To: =?UTF-8?Q?Mattias_R=C3=B6nnblom?= Cc: dev@dpdk.org, =?UTF-8?Q?Morten_Br=C3=B8rup?= , hofors@lysator.liu.se, Stephen Hemminger 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 Wed, Oct 4, 2023 at 2:06=E2=80=AFPM Morten Br=C3=B8rup wrote: > > > From: Mattias R=C3=B6nnblom [mailto:mattias.ronnblom@ericsson.com] > > Sent: Wednesday, 4 October 2023 12.55 > random: clarify PRNG MT safety guarantees > > > > Clarify MT safety guarantees for unregistered non-EAL threads calling > > PRNG functions in rte_random.h. > > > > Clarify that rte_srand() is not MT safe in regards to calls to > > rte_rand_max() and rte_drand(). > > > > Suggested-by: Stephen Hemminger > > Signed-off-by: Mattias R=C3=B6nnblom > Acked-by: Morten Br=C3=B8rup Applied, thanks Mattias. --=20 David Marchand