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 D5F63A0545; Wed, 25 May 2022 00:18:29 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B7619400EF; Wed, 25 May 2022 00:18:29 +0200 (CEST) Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) by mails.dpdk.org (Postfix) with ESMTP id 0C35A400D6 for ; Wed, 25 May 2022 00:18:27 +0200 (CEST) Received: by mail-pl1-f169.google.com with SMTP id b5so9971309plx.10 for ; Tue, 24 May 2022 15:18:27 -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=Mxc3DqlUCPpkHhO0VCclQTB4UHjSzA9FyVHsLzRsLGA=; b=Ao+COlyLkHJn25kI7XkTk+5cEg21QJANI/FfKzGYex5BfHxH8hidrTWasT5HUwGwmC ql1R0FFH3BIVzh08zMkG0et9a6xKeU7lJ12xKsboa9+A9HAqSIIMNTsHFwsRzD8H6I1D /Kofj8KDfXpW64B7jGIW2OmaQdQOJXhF0bN1HFNdYu95Glu1SRj2GHRHT1MFJoaVo3Zs xCNeaAfCEkkOYDZbzGuo80ZLWCFb1mp+snFKCjHWhX9zmAfN1wMsXGfhMUfVzZusaYCY cgFu5k0dLh868yTAKXQ8sTr2HupELxPnEFuyGL3U77/ahl4d3C4sPNkkFdKI05LS+qGF UhpA== 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=Mxc3DqlUCPpkHhO0VCclQTB4UHjSzA9FyVHsLzRsLGA=; b=sSK5Qr7A2i/94x/aK/q5eD2dUUDr2ywoI7Hr2bK+7XPpPDKSLKtR0W7DxBIFA2j9Qm vjcUdWoWvyNkK570rVfn07z/dOK+0ZpNTu0UAcxf6QAESyX+Yf+ai7tQ+cB7L+8QmjmR jH3jciCuyPlm8QvPfQjtWUq6l93iNYq1IgbxN5G1L89Y/BnhD4PIMG2XKtAALZnt2xGn ymQU6F31P+6l3jeqxOKVCgRLaJ3HWqGNIOQs3rzrwlUMrVrSO8uUIFUNWcjdtDDnjg5G 7YPa3sO8VjyC5W7/XWruP0vkHXMxvumk/YNVMFcch38DIiqLy2c3AHuefKhDzUClIRrb sU2A== X-Gm-Message-State: AOAM531ollFOVQShQxtbuAnFMtJzevW3QxWjU0xv+uboODDLSSmOAOIS FRLKH5WHUNUlKct2ZcforyK6ozkJOMSCmw== X-Google-Smtp-Source: ABdhPJwS2hi9iCB4Sr+J7BlBOZSOahDDLtpX/0WH5wneDPk2l4kkvlRr5VdTfAZYulkEoWWUvkOE3Q== X-Received: by 2002:a17:90b:1b43:b0:1e0:4bda:13bf with SMTP id nv3-20020a17090b1b4300b001e04bda13bfmr6879418pjb.109.1653430706759; Tue, 24 May 2022 15:18:26 -0700 (PDT) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id j64-20020a62c543000000b0050dc7628158sm10007121pfg.50.2022.05.24.15.18.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 May 2022 15:18:26 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [RFT v2 0/3] pie: fix random number issues Date: Tue, 24 May 2022 15:18:21 -0700 Message-Id: <20220524221824.1037693-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 Alternate way to fix PIE use of random by introducing a fast way to get a random floating point number. It ends up not needing floating point math. Stephen Hemminger (3): random: add rte_rand_float() 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 | 21 +++++++++++++++++++++ lib/eal/include/rte_random.h | 17 +++++++++++++++++ lib/eal/version.map | 1 + lib/sched/rte_pie.h | 7 ++----- 6 files changed, 53 insertions(+), 5 deletions(-) -- 2.35.1