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 59ACEA0555; Wed, 25 May 2022 19:12:37 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0E3FF40143; Wed, 25 May 2022 19:12:37 +0200 (CEST) Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) by mails.dpdk.org (Postfix) with ESMTP id 33231400EF for ; Wed, 25 May 2022 19:12:35 +0200 (CEST) Received: by mail-pj1-f47.google.com with SMTP id m14-20020a17090a414e00b001df77d29587so2212501pjg.2 for ; Wed, 25 May 2022 10:12:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7m2YxhnucHOvcOe3nkSqtXDOxZXEUWrHBfV5xyiClNo=; b=gWHCuA73VBui9QIx35XxIQY7XSnstaZm3mlJ23Vk3Dd45U4VtW/mX6iJJADy/BY4Qp /kmGBrxIQFdNeP8jHrPibT4oKgJIDElIjEbBSKNSYYIUARVVWSqCRoNZDqv98jX/60Dc CzH1wLbE0ngqm699J+QSvF0+fqJw11v8yTCb9VxjiA22igp618wI1rB1cPP6Oq3UGCP1 WCNpILtEPWcYv3HK5+tRqo1R5JEcpD0fwJT9tpHPF6j6QPxwEdvpsx1XQn2Q8wBlqKIT dSL/wKa3q0TPzWjYdKawzhModbbP2g/Ki+phNVxOsYyQCSG3LnDElsCwmzBsDbMi3LP1 PITw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7m2YxhnucHOvcOe3nkSqtXDOxZXEUWrHBfV5xyiClNo=; b=pkninDARtjQD2KH3g15Tk0lh38uOv2T6XwqqKmWg5Z26TIFSWZihJ5/szklFnX/1/r iduWaNE4CkPhOUse5Ii/tzpDv+i+EFkeNpHPEcPcL86YZzwZA1URO9FVq9muDuyiXJjP VxstPo2VRqBSV5fybPiiFBh7mn4HkjKFmMopZ7NgSfLqjH7pjuz8Fr1npe5JKUMugfgK QIMzsXtNS5ZA53O1avilwt+FNkZgG93o55kU9vhYEKdxDHi7dq6rE6D76SKQ0z/JhPXj IAaT5avnyrlUfjJA2+uTdF2fPKMNrKEHP6EWo+qMmjChfum9i6lgX1qQOeyPIvykJYE5 LMWg== X-Gm-Message-State: AOAM532jwbCgRr/dIEemWAzl72GIgBgI3k4K6LABU5ebXXzJuGRn6Fx8 KlbcBtMsMttEwqArNWFeLgTLEm8qzdJN+Q== X-Google-Smtp-Source: ABdhPJzSMPkYPGKlfB1PLQKO1v78Kc+rzyBJDHDna5FaZ+7khdmpg72lq+c+S/DpTHWtyy2Kru76OQ== X-Received: by 2002:a17:90b:4a42:b0:1e0:34f6:fdf1 with SMTP id lb2-20020a17090b4a4200b001e034f6fdf1mr11573541pjb.175.1653498753876; Wed, 25 May 2022 10:12:33 -0700 (PDT) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id s23-20020a170902b19700b001622c377c3esm6139599plr.117.2022.05.25.10.12.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 May 2022 10:12:33 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v3 0/3] introduce random floating point function Date: Wed, 25 May 2022 10:12:27 -0700 Message-Id: <20220525171231.200035-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220524184623.480646-1-stephen@networkplumber.org> References: <20220524184623.480646-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Introduce a new random number function to get a floating point value. Then use it to fix PIE scheduler. v3 - rename to rte_drand() and other review feedback - fix warnings with some compilers in test code Stephen Hemminger (3): random: add rte_drand() funciton rte_pie: remove unnecessary floating point rte_pie: fix incorrect floating point math app/test/test_rand_perf.c | 7 +++++++ doc/guides/rel_notes/release_22_07.rst | 5 +++++ lib/eal/common/rte_random.c | 24 ++++++++++++++++++++++++ lib/eal/include/rte_random.h | 18 ++++++++++++++++++ lib/eal/version.map | 1 + lib/sched/rte_pie.h | 7 ++----- 6 files changed, 57 insertions(+), 5 deletions(-) -- 2.35.1