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 9B809456E6; Mon, 29 Jul 2024 20:31:28 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7537240BA0; Mon, 29 Jul 2024 20:31:28 +0200 (CEST) Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) by mails.dpdk.org (Postfix) with ESMTP id 2704740B9D for ; Mon, 29 Jul 2024 20:31:27 +0200 (CEST) Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-1fed72d23a7so23059505ad.1 for ; Mon, 29 Jul 2024 11:31:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1722277886; x=1722882686; 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=YuIyCFrRhzqljqKKpin6HLMURRnalcbbBt/W7Z5WVkE=; b=zhxdogGR39bZgCst5XmRmxZeOJuisoynR4OXR7iCGxTRnf5oueZQpjAF4ladYL8mVN cAlpjhL0xpvRbD8v4+/WztxvsYChp5IKPCmv5FWwiMSPZOd1Vfq2tQRoLxPV9vorWiX8 nHFcA8LqVHHyOrUyp52NEhLFe7edD0tu+cYixGu5314J7wSRK33ne9s/SM5f49vBxaoQ XfrqkTBmXNAUHGtI5OzoVLup/6DMM4b8MmERyumjoXme9kwB2g0+WXZw7wWxxh7t/UQ4 6i71FXzyyPWK+66GsmLmVf3NnWKLZNVzQ+dURNNifP52sNPZWMOfnykdSutE2iqLkF7r fd9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722277886; x=1722882686; 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=YuIyCFrRhzqljqKKpin6HLMURRnalcbbBt/W7Z5WVkE=; b=NtxKud5yfQn3JJ6RBPwtAnsjy6Z3DKrM8kX4bk4Z5Kig5hDj/L0QeTf/KYxtSqpeFt I/lUlCf8+ybG4qYjbAhrrQO13kGnofBpdKulVdbmO/oqyKbqmyCBN3g+KeOw9ZwVfeEh kYdeB4uQRnGLp453/LfpJ5iFT+litS2vVdgovSO3GlrXloVWF0xSgEIjdlx6IqyoYFW4 sJT1vLMF1r3Uz+GpBzYSW0yqJT2QPVJ5Z73wA/cevS8CRtYbraTLkVj+ppCSEnV+Hur8 YDhNkrf2hmEsUoeHZAlCBkphmCtLk1qOwcH4bJHSqk0YnUpGDtAAaz6NDQnUEdGIrx6w 355w== X-Forwarded-Encrypted: i=1; AJvYcCX5Wf5EcrTK/kf4e4VzXEJxo7EaOSQaNrUkEss1EA2m7KNK9s566sTlUxNv6CYK1bCmrz7KphyBjlm7GHE= X-Gm-Message-State: AOJu0Yy+V5SteNRT2rFepeInlUpqE/474uJQ/4sguw4WVvZMUzVgFbbF 7C6QZ+C68iEtAg/MoKWWPbI89ujLC++qmLY+rEyFi6m912Vvl0RG6KFQUPTKY50= X-Google-Smtp-Source: AGHT+IHdMggbBFraC4Y0Yit9621KxiuGsQzpaIbo12dKIT2TCw2JIwIP8hoWLn+/JCPQQQUExVTpzw== X-Received: by 2002:a17:902:e547:b0:1fd:d3db:bd06 with SMTP id d9443c01a7336-1ff047deaf1mr68973465ad.2.1722277886200; Mon, 29 Jul 2024 11:31:26 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1fed7f3eb85sm86390975ad.214.2024.07.29.11.31.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jul 2024 11:31:25 -0700 (PDT) Date: Mon, 29 Jul 2024 11:31:23 -0700 From: Stephen Hemminger To: Wathsala Wathawana Vithanage Cc: Mattias =?UTF-8?B?UsO2bm5ibG9t?= , Shunzhi Wen , "thomas@monjalon.net" , Mattias =?UTF-8?B?UsO2bm5ibG9t?= , Ruifeng Wang , Bruce Richardson , Tyler Retzlaff , Min Zhou , David Christensen , Stanislaw Kardach , Konstantin Ananyev , "dev@dpdk.org" , nd , Jack Bond-Preston , Dhruv Tripathi , Honnappa Nagarahalli Subject: Re: [PATCH] eal: add support for TRNG with Arm RNG feature Message-ID: <20240729113123.7eccc559@hermes.local> In-Reply-To: References: <20240723212703.721050-1-shunzhi.wen@arm.com> <536d1325-ee15-4630-9ae9-00cef9411d34@lysator.liu.se> <2d28f42f-480b-4070-8ba2-1353a742b46d@lysator.liu.se> <5d409e6a-1d61-4d8a-b9ab-8cbcf7838ad0@lysator.liu.se> <298cc5e7-bb47-46a9-a904-c583edff7daa@lysator.liu.se> <7d5f1b04-2711-4732-88a6-006e3f67f294@lysator.liu.se> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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, 29 Jul 2024 18:16:14 +0000 Wathsala Wathawana Vithanage wrote: > > > > Without a rationale why rte_csrand() functionality is something that should be > > in DPDK, and a rationale why the ARM CPU CSRNG is superior to getentropy(), > > it doesn't really matter how the patch set looks like. > > > > I've repeatedly asked for this information, and you've repeatedly ignored it. > > This does not further your cause. > > > > I don't want to get into a debate on what's more superior because DPDK already have similar > Setups, take OpenSSL and Marvell's security accelerator for instance. Rationale is simple it boils > down to freedom of choice. > > I have been reiterating that I'm ready to make Kernel getrandom() the default in rte_csrand() > and HW RNG (not limited Arm) a build time option along with your other demands for various > optimizations. Having a build time option to enable HW CSRNG doesn't hinder your freedom to > choose a CSRNG implementation of your linking. > Neither you nor I are in a place to decide what's right for others; the best we can do is to > collaborate on providing them with options. Leave the decision to users, application developers, > and integrators. > > I believe that the coexistence of support for OpenSSL and other HW security accelerators in > DPDK already establishes rationale and precedent. Unless there is a specific direct usage in DPDK, my conclusion is that there is no added benefit to users by adding this to the API in DPDK. Users are free to use what they want, getentropy, HW instructions.