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 35AD042DC0; Mon, 3 Jul 2023 09:49:01 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 23E9D4111C; Mon, 3 Jul 2023 09:49:01 +0200 (CEST) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2072.outbound.protection.outlook.com [40.107.243.72]) by mails.dpdk.org (Postfix) with ESMTP id 63B3440EF0 for ; Mon, 3 Jul 2023 09:48:59 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S4c3+XgdLF2Hv9qN+BhR8XvizRiRhTq5/kr8EcLz1to7za1RCELkBKU61LsXdCAIWqiEIVSA6TQobReR6IHKNv/dR4iHogINZ1IwsLmYhyse0fpH69rz9TEZD9earuND6iJUAiwdeO2HBNQt1pt7VXDXAYCx8XPK0J+Nuby/BPhjq+RUqMKxucm8qQ+RDIjHvZwLa1j44TTkiSGeXLvzn10BNhEgyOxpTRh72F6NDbw40hbjz54aASD2+KeqhtjbZNrfnWMsGm3M0mk6rP+O9Mti5BUBjYtcxQlaPUyHRmpJW8C7z1Y3wzOPqZu8l3svk4p63kLMH/CspfYZbosGjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=3sltUgpoixWtydxfxWGE1iLnoTcxNMiSoDSIgB+ZSsU=; b=I4rq/kHr0+RIia9ZyYWCQi6avewCHI2wbiwLV/OIB4HWnKkDFA+TOI7RJ9GaruXH30icwiV/cOfLfyHLm0UuR0N82ZsCJP7CdZZeGM+8tujTg4xldZ8YMmL5bJqCzATLTtZhauFnCpzHSjdUShmLWwCkmsp0mCuIfR5owpVhV6qoz8aOy0KoGRVQo9593+1z27S+8ZFZz3TKI1vhszVpiS+PDVcpJx/5Mi/BO128JcgjaLnv71n7JOPrFSiC1E76w6j+pWT7KQU2GzqSdmyQtaPlW3FAcW5b71yzwKTCG/XUShWSYiQEsR3o0V/xavAQ+iq6v/YQ75BjKlQ4Vmw3Vg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3sltUgpoixWtydxfxWGE1iLnoTcxNMiSoDSIgB+ZSsU=; b=b9JUBQJ2QynKbg+bcWu6CnZuG7sJqS5nmye4RecC2/Mro/ctcGlUOLL8CaExSPzQpMUexwe3qPIGMCCVlmDGpXppYBmyAmfZA3K9Uv6J/NWky02HQn57ssrvAJDHDG4XJjkzlgPL1lWKBZVAxj3EZaRmnf9T2i+MIViRz7damunNRrAT0QWdzSzzyc9peWHp0x2eG9VrYcmDsG/hk6RMY3E24jBcJVzLjmpFAZ/SZRnCgCNe+7PMdLCOd6cUnJ1G9WtkuGwHBIk9793vmj+MkMavhX2y+zrNSBW11BItkKZq3bA/BUkxfB9bc3n7Yd26YEzWPhXb63D5kOrhBc/i8Q== Received: from DM6PR02CA0143.namprd02.prod.outlook.com (2603:10b6:5:332::10) by MN2PR12MB4287.namprd12.prod.outlook.com (2603:10b6:208:1dd::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.24; Mon, 3 Jul 2023 07:48:57 +0000 Received: from DM6NAM11FT074.eop-nam11.prod.protection.outlook.com (2603:10b6:5:332:cafe::e0) by DM6PR02CA0143.outlook.office365.com (2603:10b6:5:332::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.30 via Frontend Transport; Mon, 3 Jul 2023 07:48:57 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by DM6NAM11FT074.mail.protection.outlook.com (10.13.173.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.43 via Frontend Transport; Mon, 3 Jul 2023 07:48:57 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Mon, 3 Jul 2023 00:48:34 -0700 Received: from nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Mon, 3 Jul 2023 00:48:33 -0700 From: Ali Alnubani To: Subject: [PATCH] doc: update mlxreg command arguments for recent versions Date: Mon, 3 Jul 2023 10:48:20 +0300 Message-ID: <20230703074820.502473-1-alialnu@nvidia.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT074:EE_|MN2PR12MB4287:EE_ X-MS-Office365-Filtering-Correlation-Id: 06f6808c-1f78-4701-ec37-08db7b99f537 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jDBJUzk4SIe8Pjr0fhcFA2VCD3MsCpshkeSNUavKzTSd+MWcgMOYzDhQ23h/NAMm002lgAyEj2RX3q3Uae8laa+Bb6tXo9x7uUZxF3XADG1Cd8PVIBlsA9QSx/uzJaAKS2ywD+xOrm3kbxuLemiKfebs1a1O8WFchXIc++wZAqUTKr8ev3emrjs8QL4yuFlD2D3nfIgyDK9k9l+eGSJBiXzagiv5CN3eEDg6ORGf7N39aNZ2HCfUq8nLo+i2QbaYm2s5L/D2H3isSF9gbwGn0MLEqKSyxN8ZJyYi0nNWE/jFHLCb0w4Ew4Yqx1U0NoYVzXOA8hK7LwujqaLT3NT2BQOxW0Kr8zPw/TyPrda1UQvOvANZn2cd7JdUoMtbquP1TYLPf95iPSHkBUys1Z1bWlrNkBeinA/W+8OeZmjkGWlWWxpbTnEUw00xWK9+9B1sX/0zm4KTPtn2BCe9Y/rpDb8EcFV/TvySMhw+37ItXiud85G7OgmyUQEdC+w+UfTgtz38O/pPm23MI7hGsAF0FuWwo2gtL1mDzY0FevxSkdfijZqmNWIKPnSjCLPcjelqI52kk10YMnXs60G+qsdfuOtP4bGcGnbDf7/PaQq4fl1b0c15xgBPoNMJRM+amTcELVw4ozGFn4wlQ1v1a/jxi+izLljcLxt3ZyF+O2fiUoWJMRryTj0v2JCx3EPLmiC+qfB2tHcoET4lixrV/ugNVMVfpJj4p7elSe7Iica/fST6IGTg7bGP4rwVDn++5uK4 X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230028)(4636009)(376002)(396003)(136003)(39860400002)(346002)(451199021)(46966006)(40470700004)(36840700001)(40460700003)(2906002)(41300700001)(5660300002)(8676002)(8936002)(82310400005)(36756003)(55016003)(40480700001)(86362001)(6286002)(16526019)(186003)(2616005)(478600001)(26005)(1076003)(6666004)(82740400003)(7696005)(70206006)(47076005)(316002)(6916009)(70586007)(36860700001)(7636003)(356005)(336012)(426003)(83380400001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jul 2023 07:48:57.5946 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 06f6808c-1f78-4701-ec37-08db7b99f537 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT074.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4287 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 Recent versions of the command require vhca_id and all_vhca to be set with the --indexes arg. Signed-off-by: Ali Alnubani --- doc/guides/nics/mlx5.rst | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/doc/guides/nics/mlx5.rst b/doc/guides/nics/mlx5.rst index 7a137d5f6a..68ecdbec15 100644 --- a/doc/guides/nics/mlx5.rst +++ b/doc/guides/nics/mlx5.rst @@ -1887,9 +1887,15 @@ The procedure below is an example of using a ConnectX-5 adapter card (pf0) with $ ip link set p0 vf 0 trust on $ ip link set p0 vf 1 trust on -#. Configure all VFs using mlxreg:: +#. Configure all VFs using mlxreg: - $ mlxreg -d /dev/mst/mt4121_pciconf0 --reg_name VHCA_TRUST_LEVEL --yes --set "all_vhca=0x1,trust_level=0x1" + - For MFT >= 4.21:: + + $ mlxreg -d /dev/mst/mt4121_pciconf0 --reg_name VHCA_TRUST_LEVEL --yes --indexes 'all_vhca=0x1,vhca_id=0x0' --set 'trust_level=0x1' + + - For MFT < 4.21:: + + $ mlxreg -d /dev/mst/mt4121_pciconf0 --reg_name VHCA_TRUST_LEVEL --yes --set "all_vhca=0x1,trust_level=0x1" .. note:: -- 2.25.1