Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp6162569pxb; Tue, 16 Feb 2021 18:54:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJxDhfqEHtVkOYVAoyFRSeBuPF4Z53Apq+jtfCcM6OpJQ123KXvOIcnPiCZgI5cPwzZXMSwj X-Received: by 2002:a17:906:cd02:: with SMTP id oz2mr17721294ejb.116.1613530456196; Tue, 16 Feb 2021 18:54:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613530456; cv=none; d=google.com; s=arc-20160816; b=E4bQPcF/SAEUKhN0rNqjdmU5wuCZvASukFfKqE9hAAssAfeTI2WHIaSoWAgwCo4BuP QycFU5MBXaddJnn0ZnJBWPIHjLDJzcVVzj+lCMM0G3TIK6Sw2pbtfX51A7q2V2Vkl3w5 dvESD3Op40BOcBqci9nCyU0kw9QCDj9R8bWCL6/Jhx0K7AmV88F540gumC23OwNK5flV 9ogmCVA8UbhOj4GKpAAXJu+YY5PNnzd3GNHaf/aWxS+LhlXc3O6tVlrvbRjiIsW3rcSB d+s04oQwwi52cJNRJ1+fBNQLh1lakP7T8A1LUp4v7p1tOxs/lX/aT9uH+/5PhtNXJ2LV suwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=mKEi1sJYnLakZCgrLfrV2khoVOUj2RlU6jI3qP53jFw=; b=bYv10apyzMdscQS4lqmQX5ase9RHnDluLI+AuUzzlUMHMf2wZ0znPh+R+6osREEGAI M5tJzy8qJv9TLfz6Vq+o1YF3REw8zqPoLfwo6APkeuNc2PEIeaCgSb+BQH+qRWtHNapU 3sWQsQx7XPTog5G6AWHQPrhRUPBiZaOZPNfp9Cyf53XhxZeSk+ea5CgW+0AKpZwvOwmJ gKVFRwzYIkv8QSfGKn2KcK7Ey7Zobs6aUFnDrtzHl8FfloGcw1mjGur6SSDduTovgnx3 62En9IMSaFF7JzpZcNdJR76prmKMcr3VrRgxykOzkpCNxXPhjnCSjG/PBuxAlsvfVR10 fU9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LmCLQw9J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i22si613803ejv.311.2021.02.16.18.53.51; Tue, 16 Feb 2021 18:54:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LmCLQw9J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230400AbhBQCv7 (ORCPT + 99 others); Tue, 16 Feb 2021 21:51:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229734AbhBQCvx (ORCPT ); Tue, 16 Feb 2021 21:51:53 -0500 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A46B3C061574 for ; Tue, 16 Feb 2021 18:51:13 -0800 (PST) Received: by mail-io1-xd30.google.com with SMTP id q77so271809iod.2 for ; Tue, 16 Feb 2021 18:51:13 -0800 (PST) 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=mKEi1sJYnLakZCgrLfrV2khoVOUj2RlU6jI3qP53jFw=; b=LmCLQw9JEInyfq+j1Ckjhhcnt/PrdwS148aC+nfMxhjLs+alVeMb6CRSCrG47PlMP4 LNceal2gZ633OIfcpmnVWMqe7UcZvJhr3ia5L7mlJFn9ViO10rai5swUpvEaZhqy+JTI Bo8CHqESkmNH6RofNQz/pwgqXDoE7k+DasjQzr8bHA45lsgthu7qtgTQdaAFeaqZLaTY Z4nQynes2El7E/1vCx8gPSBr6M0G63m0j13rFMJwHFs04dCiAd/wQSGSv7ggN7ggK7Lp 3uhHxJP/BdfQPCEtDOLThyXWKs/cJq/CgdGycaUPidufFKxwb2OQIlSQBq1YDfRr15pW MCxw== 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=mKEi1sJYnLakZCgrLfrV2khoVOUj2RlU6jI3qP53jFw=; b=DoVgHBlhAhB9JrhzLtXA42uo7Js+GMKXg0pX4ZWDKL+rhojAzRWwO/s5biN6y4MOfm qXUYMJbn8AQCs54qOu02bVTBsXzNbVKK5nZ3NBEh7UN+zHiTxdbKyBEy8Ma7ACJTN3FM C5hex1KBzN7F4ZiiT7fFtqu8dqbFK5cmYun44/8SqqlDyJpmmP0sQgsMKBAfthRlHQHV Rxanhnq94nNrkcWo34Xnb8dmYa3oAhklfPyW67LJxLl1Ph+XsLy+riGlz+D4tHnvPna9 HproUVNiqnTjDSaROwFUe9+VR/7R9SPv277j2y3dMnGdQ9cgMD+OtACw457xlAKvhw30 w42g== X-Gm-Message-State: AOAM530YV8/5GYCVLIc983c//+vDD9tCskWUS9+MfnNX0JhLpXSZ3VvU /r4CUGCkdSo3XcYZOWNivGqr89TlIzuufHDWmiA= X-Received: by 2002:a6b:6f04:: with SMTP id k4mr316022ioc.2.1613530273152; Tue, 16 Feb 2021 18:51:13 -0800 (PST) MIME-Version: 1.0 References: <875d20889c9528190cd661202030b6fccc25d120.camel@nvidia.com> In-Reply-To: <875d20889c9528190cd661202030b6fccc25d120.camel@nvidia.com> From: James Spader Date: Wed, 17 Feb 2021 08:21:01 +0530 Message-ID: Subject: Re: mlx5 HW crypto offload support To: Saeed Mahameed Cc: "linux-kernel@vger.kernel.org" , Raed Salem , Huy Nguyen Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Saeed Thank you so much for the response!! It helped me a lot. The guide is very helpful. It is detailed and well written. Thank you Best regards - James On Wed, Feb 17, 2021 at 3:26 AM Saeed Mahameed wrote: > > On Mon, 2021-02-15 at 23:17 +0530, James Spader wrote: > > Hi All, > > > > Does HW crypto offload support for mlx5 work under virtualized > > environment? > > For e.g with PF (Physical Function) driver and VF(Virtual Function) > > driver. > > > > If yes, then how does the information that is required to create > > security association get passed to the PF driver? > > > > For example in rx full offload the FDB table needs to match the spi. > > As the spi is created by the VF driver, how does its value get > > communicated to PF driver... > > > > Hi James, > > please find this guide [1] for a step by step configuration, i hope it > will answer your questions. > > the solution is only in OFED package right now, Huy and Raed "CCed" are > working on the upstream submission. > > The link below discusses the configuration for Bluefield smart device, > but the concept should be the same for Native SRIOV. > > [1] > https://community.mellanox.com/s/article/ConnectX-6DX-Bluefield-2-IPsec-HW-Full-Offload-Configuration-Guide >