From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 28480A3160 for ; Fri, 11 Oct 2019 22:33:41 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4954A1EA15; Fri, 11 Oct 2019 22:33:39 +0200 (CEST) Received: from mail-io1-f65.google.com (mail-io1-f65.google.com [209.85.166.65]) by dpdk.org (Postfix) with ESMTP id 11F8D1D155 for ; Fri, 11 Oct 2019 22:33:38 +0200 (CEST) Received: by mail-io1-f65.google.com with SMTP id c25so24139274iot.12 for ; Fri, 11 Oct 2019 13:33:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=w/P87+o3lpAIAYbwMW6tBSGllp8Bj7SqfuKKNRfwnhQ=; b=mw6STdzZOn7TFhaoomX82ATzGXI2niyQRc0CKNd9lpZ4lqi8K+xfJN/dk19i44JpQY WIAV1s/MmFzlGhfFs4gohlCtl3cVMsg5MKqmaEIjm4Dj5csg1S9sRn+sFv/jFYQ+iQw2 zH9Z43//mpQdvzyjjEYS/2vuDOCOcl14jNwuME4MVS82AI2Sz5hJoBRPaSvARtsAU076 Mprxl/PqJsNFow4Io6ItSXlTkAOIY+2MqDekF3YsWohrx9BAN6JXabtM0NR2yq3z8avy EiEkH/u0tWPwTadfMSW+ZXO7gZi9BINopA8dl09Jvp1Hi0AMXR9tR4bbPWuR51g65qhL NrXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=w/P87+o3lpAIAYbwMW6tBSGllp8Bj7SqfuKKNRfwnhQ=; b=mjIO4X0/hT8Fn3r2lxCAO+oAJsoLaMXAo/kylLbo2m6gNNXyVEG80YlAHuzCDEzuC0 LYBRUxKrUrDDBc/3imNMKT3U0wHxf5DENth5KS/wkWf77FZb6420e+2FMNprNgAXB6uu Mm8fx+mbVmjvYZBUH+ukk2JV9ufOwaNjYu7VO+ik2fYyNMFg5eSQ5Z6SyB4r9FYwzVJ2 81Gl4rVcF6i3O5F4cFSQPoJ5RmNwtPDiWGme1N92U74v/YxQk5xjnLjGKSsEIwVqRb0K BoQpQzRL5CyDdMuVjC9nL5kdxZvyBzwOg4ZLkU5wtsukKMSrOanS645C4oKi7HTJeYUH MISQ== X-Gm-Message-State: APjAAAXmZZmHtg25ANfuw9Hjf+NJsJ9IFIlKcpvNXOiI0+qaI4Mt5XKk ZLHyIISuFkuOvotT86VIwOph97tPHnIJ2yOvm7I= X-Google-Smtp-Source: APXvYqzJsSaGxmXC1td5IYyvYg7pG/YLBqF3juwTPspwb5LwqBEDIB+J4nyNVDs5U6s7ur36+2yeS74PQbYoxddVHq0= X-Received: by 2002:a5d:8cc6:: with SMTP id k6mr18079432iot.15.1570826017013; Fri, 11 Oct 2019 13:33:37 -0700 (PDT) MIME-Version: 1.0 References: <20191003225732.13463-1-dharmik.thakkar@arm.com> <22790115.aVAZyMIHDd@xps> In-Reply-To: From: Jerin Jacob Date: Sat, 12 Oct 2019 02:03:25 +0530 Message-ID: To: Honnappa Nagarahalli Cc: Thomas Monjalon , Jerin Jacob , Dharmik Thakkar , "Akhil.goyal@nxp.com" , "hemant.agrawal@nxp.com" , "anoobj@marvell.com" , "pathreya@marvell.com" , "Richardson, Bruce" , dpdk-dev , nd , "prasun.kapoor@marvell.com" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] [PATCH] crypto/armv8: enable meson build X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Sat, 12 Oct, 2019, 1:44 AM Honnappa Nagarahalli, < Honnappa.Nagarahalli@arm.com> wrote: > On Sat, 12 Oct, 2019, 12:44 AM Honnappa Nagarahalli, < > Honnappa.Nagarahalli@arm.com> wrote: > > > > > > On Thu, 10 Oct, 2019, 10:17 AM Honnappa Nagarahalli, < > Honnappa.Nagarahalli@arm.com> wrote: > > > > > > On Mon, 7 Oct, 2019, 3:49 PM Jerin Jacob, wrote: > > > > On Sun, 6 Oct, 2019, 11:36 PM Thomas Monjalon, > wrote: > > 05/10/2019 17:28, Jerin Jacob: > > On Fri, Oct 4, 2019 at 4:27 AM Dharmik Thakkar > wrote: > > > > > > Add new meson.build file for crypto/armv8 > > > > > > Signed-off-by: Dharmik Thakkar > > > --- > > > drivers/crypto/armv8/meson.build | 25 +++++++++++++++++++++++++ > > > drivers/crypto/meson.build | 6 +++--- > > > meson_options.txt | 2 ++ > > > 3 files changed, 30 insertions(+), 3 deletions(-) > > > create mode 100644 drivers/crypto/armv8/meson.build > > > > > > > > option('allow_invalid_socket_id', type: 'boolean', value: false, > > > description: 'allow out-of-range NUMA socket id\'s for > platforms that don\'t report the value correctly') > > > +option('armv8_crypto_dir', type: 'string', value: '', > > > + description: 'path to the armv8_crypto library installation > directory') > > You should not need such option if you provide a pkg-config file > in your library. > > > > It is not specific to this patch but it is connected to this patch. > > > > Three years back when Cavium contributed to this driver the situation > > was different where only Cavium was contributing to DPDK and now we > > have multiple vendors from > > ARMv8 platform and ARM itself is contributing it. > > > > When it is submitted, I was not in favor of the external library. But > > various reasons it happened to be the external library where 90% meat > > in this library and shim PMD > > the driver moved to DPDK. > > > > Now, I look back, It does not make sense to the external library. > Reasons are > > - It won't allow another ARMv8 player to contribute to this library as > > Marvell owns this repo and there is no upstreaming path to this > > library. > > This is a real issue and you are able to fix it. > > > > Note sure how I can fix it and why I need to fix it. I just dont want to > start a parallel collaborating infrastructure for DPDK armv8. > > > > > > > - That made this library to not have 'any' change for the last three > > year and everyone have there owned copy of this driver. In fact the > > library was not compiling for last 2.5 years. > > - AES-NI case it makes sense to have an external library as it is a > > single vendor and it is not specific to DPDK. But in this, It is > > another way around > > I don't see how it is different, except it is badly maintained. > > > > It is different because only one company contributing to it. In this case= , > multiple companies needs to contribute. > > > > The library badly maintained in upstream as there is no incentives to > upstream to external library. I believe each vendor has it own copy of > that. At least Some teams in Marvell internally has copy of it. > > What is their incentive to upstream? They ask me the same thing. > > > > > > > - If it an external library, we might as well add the PMD code as well > > there and that only 10% of the real stuff. > > We are not able able to improve anything in this library due to this > situation. > > > > Does anyone care about this PMD? If not, we might as well remove this > > DPDK and every vendor can manage the external library and external > > PMD(Situation won't change much) > > External PMD is bad. > > > > It is SHIM layer. I would say external library also bad if it is specific > to DPDK. > > > > I think this library should not be specific to DPDK, > > > > Sadly it is VERY specific to DPDK for doing authentication and encryption > in one shot to improve the performance. Openssl has already has armv8 > instructions support for doing it as two pass just that performance is no= t > good. For use cae such as IPsec it make sense do authentication and > encryption in one shot for performance improvement. > > *[Honnappa] *I think there is a need for such a library not just for > DPDK. It would be good if it could do UDP checksum validation for the inn= er > packet as well. > > > > so it would make sense as an external library > > > > If it an external library, it does NOT make much sense for Marvell to > maintain it(No incentive and it is pain due lack of collaboration) > > > > Either someone need to step up and maintain it if we NOT choose to make i= t > as external else we can remove the PMD from dpdk(Makes life easy for > everyone). I don't want to maintain something not upsteamble nor > collaboration friendly aka less quality. > > > > . > > > > > > Thoughts from ARM, other ARMv8 vendors or community? > > > > I have expressed my concerns. If there is no constructive feedback to fix > the concern. I will plan for submitting a patch to remove the shim crypto > Armv8 PMD from dpdk by next week. > > *[Honnappa] *I do not think there is a need to remove the PMD. As you > have mentioned, many might have developed their own libraries and may be > dependent on DPDK Armv8 PMD. > > > > Problem with that approach is that, No convergence/collaboration on this > PMD aka no improvement and less quality. > > *[Honnappa] *Would not removing this fall under ABI/API compatibility? > Essentially, DPDK defines how an external Armv8 Crypto library can work > with DPDK. Is it possible to remove it considering that there might be > users dependent on this? > > I agree with you on the improvements (features?), but not sure on quality= . > For the features that are supported, the quality should be good. > > > > The library was broken for last 2.5 years. Is that the high quality and n= o > improvement for last 3 year and no single contribution otherthan Marvell = in > external library. > > *[Honnappa] *We need to separate the discussion about PMD and the > external library. IMO, PMD cannot be removed as some might be using the > interfaces with their own crypto library. > Multiple libraries for same job. That's same thing I would like to avoid. And the PMD does not exist without external library. If some has their own crypto library then please update in the documentation so that others can use it. It is not open-source way of doing the stuff. Else I need assume no one is using the PMD. > > From Arm side, there have been efforts to fix the situation. Some have no= t > gone far and some have shown promise, but fell flat. I can say that this = is > still a priority but I am not sure when we will have something. > > > > If ARM is ready to take over the maintenance on PMD and external library > then I am fine with any decision. > > Let us know. Personally, I don't like to maintain something not upsteambl= e > friendly. > > *[Honnappa] *What is the maintenance burden on the PMD? Can you elaborate= ? > > > > Marvell open-source policy is bit different than cavium policy. We can no= t > contribute to GitHub repository with out approval. The existing external > library, not belongs to Marvell GitHub domain. I need to create a case to > add new GitHub repo under Marvell to contribute to all armv8 partners. I > don't have justification for that to legal. We have approvals to contribu= te > to dpdk.org > > > > On the external library, I do not think this is the right forum to make a > decision. There are channels provided to all our partners to discuss thes= e > kind of topics and I think those should be made use of. > > It is cavium created library for dpdk. Why we need to discuss in some > other channel. I believe this is the correct forum for dpdk discussions. > > *[Honnappa] *May be I was not clear, please see my comment below. > > > > For example, Dharmik got comment to update the external library to > support autoconfig for meson. What is the path for Dharmik to do that? > > *[Honnappa] *Is this mainly from testing purposes? > > > Not for testing. See Thomas comment Don't you think, you need have access to the complete code base to > contribute. That's the reason why I am saying remove the external library > and have it in DPDK so that everyone can contribute and improve. > > *[Honnappa] *I don=E2=80=99t have any issues > But DPDK does have support for that. > > If you think, otherwise please take over the maintenance keeping initial > author credit. If you need time to take decision that makes sense. You ca= n > share the ETA. Otherwise, this discussion going in circles. > > *[Honnappa] *This cannot be decided in this forum. > > > Then please start the discussion with the form you think it as appropriate. > > My suggestion, we should go ahead with adding the meson build for this PM= D. > >