From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 356CBC433E0 for ; Mon, 29 Mar 2021 21:06:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0D3F761990 for ; Mon, 29 Mar 2021 21:06:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230472AbhC2VGF (ORCPT ); Mon, 29 Mar 2021 17:06:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:54006 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231157AbhC2VF4 (ORCPT ); Mon, 29 Mar 2021 17:05:56 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 77EFC61976; Mon, 29 Mar 2021 21:05:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617051955; bh=OtcCjjLZbaur2B7OExtX0LSlInIrcR+m6q3EDw1d8VY=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=qX6AVYYpRom0Cgd1fHjn6VNR6OkX9Z+WOXyPDEBOZe4fpoTulKBbBu3MZSL4hE2vm pXAA3owv19RyorkgxSQcE7ckgeOgiTh1FGOPeUXPNwhZq1qY91q49IoyxFOM7ws9nu gW4s3ldybwk2WCfrD6X4DC53HrcMq/I9mxSoL/lJ6C1QVccVJOBEWMeyk/sh1X2rH2 5tchL8tmksW7Nr99FD55avl/RULERolmC9DJmUzPA2hzejU/Ea9H3upqBWCmhzF9IW gv7u+zQ4aavJzE0jZYNdCPVX0jTrulicJLq9HCX4YKVcpSpWLIVlR7f3C+YrCQPzt3 OQZpHlPFlBXaA== Message-ID: <026c789b7d3b6f81698803cc9ef86c3467d878d5.camel@kernel.org> Subject: Re: esp-hw-offload support for VF of NVIDIA Mellanox ConnectX-6 Ethernet Adapter Cards From: Saeed Mahameed To: =?UTF-8?Q?=E9=AB=98=E9=92=A7=E6=B5=A9?= , borisp@nvidia.com, Huy Nguyen , Raed Salem Cc: netdev@vger.kernel.org, seven.wen@ucloud.cn, junhao.gao@ucloud.cn Date: Mon, 29 Mar 2021 14:05:54 -0700 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.4 (3.38.4-1.fc33) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Mon, 2021-03-29 at 16:42 +0800, 高钧浩 wrote: > Hi Boris,Saeed > >      I'm enabling esp-hw-offload for VF of NVIDIA Mellanox ConnectX-6 > Ethernet Adapter Cards, but it doesn't work. >      Before I created VF, the esp-hw-offload function of CX-6 is on, > after I created VF, the esp-hw-offload function of VF doesn't inherit > the esp-hw-offload function of CX-6. >      Enable esp-hw-offload could refer to > https://docs.mellanox.com/display/OFEDv522200/IPsec+Crypto+Offload. > >      Create VF steps as follows: >      modprobe mlx5_core >      echo 2 > /sys/class/net/net2/device/sriov_numvfs >      # lspci to get pci bdf number(example:0000:07:00.0) >      lspci -nn | grep Mellanox >      echo 0000:07:00.2 > /sys/bus/pci/drivers/mlx5_core/unbind >      echo 0000:07:00.3 > /sys/bus/pci/drivers/mlx5_core/unbind >      /etc/init.d/mst start >      mcra /dev/mst/mt4119_pciconf0  0x31500.17  0 >      devlink dev eswitch set pci/0000:07:00.0  mode switchdev encap > enable >      echo 0000:07:00.2 > /sys/bus/pci/drivers/mlx5_core/bind >      echo 0000:07:00.3 > /sys/bus/pci/drivers/mlx5_core/bind > >      Then query the esp-hw-offload of VF: >      #firstly need to find the created VF(has the properties: >      bus-info: 0000:07:00.2, driver: mlx5_core) >      ethtool -i eth0 | grep esp-hw-offload >      esp-hw-offload: off [fixed] > Huy, Raed, Do you know if we support IPsec inline offload on VFs ?