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 70DC7A034C; Wed, 9 Nov 2022 20:08:10 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E2512410EF; Wed, 9 Nov 2022 20:08:06 +0100 (CET) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2059.outbound.protection.outlook.com [40.107.237.59]) by mails.dpdk.org (Postfix) with ESMTP id 54F6C400D4 for ; Wed, 9 Nov 2022 20:08:05 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iY4BN/modFQcHCAkDKITQtkYkHVTsyerCNMdb1Hk3qcjd7VliikYG3IylPrNNucw7xRlHIam2hY3ZJdY8HcfpqDKpwaocNG13c9os7qS4Cf/GozNkS268OFbNZdKXwyRJ7rfQ4BGjPR4dmYTKUu1b31z1JGV5/o9DAloiq2vi/hscu19hrj8LoHyLlUd0awIFSJj279aKdfYEtUm8y63EH2ntP1aF592fqHS3kiLcQYM4I3s9E26lRC0/pNPPbDQOHGwUuknAmQn1qNWoMieAo5plskjiBsWQuLCUUs6lzZXjKElCdmUCzsHuDrrtsD/916M+CKxfAGerx1OfwjIow== 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=u3Wg0xlVS8Ymue5eSf0jZxh2aPF51PTccSJ04XMtnOE=; b=T5rrXFYhUTd8ebgOZQQIyEOQoEeAuKZzXvjHcGTjUxN3WRA5IM+AVNz67SyMwvsC4yav/WFodKd79fGIN+vCQCsQKdkGsHk1tuKpyjNbldDbjjm41pLKDkD7kykZReUMwIdD5P1y/nUACtaoV7jerehGcMQOYx9KIZMB+0LIzAfssmKlW/R8KjP5AVAyjWTacgwrWwcv0Sn7r+aVz0OZtLBGh4lMtcf3Xm6x2+3qAYBV7TrgLmOEDkl3dSXQGS++Pp/cTrbjDdUrGW8khI9dEfO82ZUDVRdJzP+Qr4C6D2+GF16eUImay29uszpHv5Col15UCNtvR6pZwM4g0MZNvQ== 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=u3Wg0xlVS8Ymue5eSf0jZxh2aPF51PTccSJ04XMtnOE=; b=ESEW0mc+PW2oZgxCljg66v9mBnwTuUDnosxs4Sle0oHO6EBW9ErMM4tS6qGA0L22HGRGm0BCQm8xCkggUB+0xVMl7sBKSIK0wKGAWGE2euXqhuNIu3uZ1saKh1xQx3uRqK/sr48I63Qp9v9KWCV87Axazm4d0i5fvBitfQudrEXiQGxfvdKeGQddTBdXZfInpwpTMG4aMiz0pZKGtIHU3blErs0ZWEiLRS1bt1qjmmgsXpU8zJ2YVMGsUlT8+oZ/rwz5vjF9ShpV8g7CF+5LYTwXPdnKfcLfL2KXPiVBG65YjuSM6xhLE8gwxTB2ZxQupjZ2hHowLlcfbHNfEhg0EQ== Received: from MW4PR03CA0228.namprd03.prod.outlook.com (2603:10b6:303:b9::23) by CH2PR12MB4277.namprd12.prod.outlook.com (2603:10b6:610:ae::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.26; Wed, 9 Nov 2022 19:08:02 +0000 Received: from CO1NAM11FT067.eop-nam11.prod.protection.outlook.com (2603:10b6:303:b9:cafe::80) by MW4PR03CA0228.outlook.office365.com (2603:10b6:303:b9::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.27 via Frontend Transport; Wed, 9 Nov 2022 19:08:02 +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 CO1NAM11FT067.mail.protection.outlook.com (10.13.174.212) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5813.12 via Frontend Transport; Wed, 9 Nov 2022 19:08:01 +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.26; Wed, 9 Nov 2022 11:07:51 -0800 Received: from nvidia.com (10.126.231.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.36; Wed, 9 Nov 2022 11:07:50 -0800 From: Dariusz Sosnowski To: Matan Azrad , Viacheslav Ovsiienko CC: Subject: [PATCH v2 2/3] doc: document E-Switch limitations with HWS in mlx5 PMD Date: Wed, 9 Nov 2022 19:06:38 +0000 Message-ID: <20221109190639.886457-3-dsosnowski@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221109190639.886457-1-dsosnowski@nvidia.com> References: <20221109190639.886457-1-dsosnowski@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.35] X-ClientProxiedBy: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT067:EE_|CH2PR12MB4277:EE_ X-MS-Office365-Filtering-Correlation-Id: c42635f0-e48e-453e-bb7f-08dac285b93e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: sEumboZ8f0Bbj76L+xdqDnbzRsP7cpe8Csc/9b5TnWqVgNshytF5ckJapOZiTwNVtC1CYHPxbT959c2QLCh6wR8CqtvUUBn/VJr/XUe/p/XhhuKV4mFkZ0qH3S4Kh9Cq8IvA/lnswREXyUYiGyLF2iyHwpdRHiMt2bw4cszESGOYGE+OGV5jTM+71pSBaHuCW3ePH0hY+grlhj1R9NaF3HWgwoxObYKKtWa4bE80kFlXBVlKjCw8befJ3nkW9yMWkxAOC/P47q+OUV50YSCZ9IRTlNaArGTxQt7XuvHvjHLH3nL2BgEPHOx+04QTt+E0kt1/ALzAQ/dIADXllOGHvWAsdtlMP5VQyiW5htbHu7oNLJ2Ne2LJjOeYoZYOlZZvpFW77d0VpxixeH7fIXdLV+xLYR9jAfIxpQsMWk3v8qTUAC1m9irG7K0Cc1aMN+m9p3l56qC21xXl8BGa/QjwMUGXKzqmg+FCrMX2zm02UwQeLw5NxBGcUPu9GJPXq3Msfd264D19LNbXXZ8wnZ3Un3W8FyPkW9xI8EKPSr53dY1K7gtikUfTGcPlNT95Epsx2S7VcGN0vU+5ACGKhNUKVLO8SiOiVjuOszBuOul9tit/KAWw0tnvmmPzY+G67mNzVQHkW+9VkziDLBKBzjinaaKAvrK/iycvKRbhCIJ3S+vPS7ApVnMWq3zZPR2BFKmQXZTWVMSgiFc+lhon3jRV+aJmfrHHPmal24cimW99aEwYErAc1LejXobgNZfOo8EqPgtcZcBU4qfhkWHaHU/0gw== 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:(13230022)(4636009)(396003)(136003)(376002)(346002)(39860400002)(451199015)(46966006)(36840700001)(40470700004)(6286002)(26005)(186003)(2616005)(47076005)(82740400003)(426003)(83380400001)(5660300002)(40460700003)(36860700001)(55016003)(1076003)(2906002)(82310400005)(478600001)(40480700001)(6666004)(7696005)(6636002)(4326008)(8676002)(70586007)(8936002)(41300700001)(110136005)(316002)(70206006)(336012)(16526019)(86362001)(36756003)(356005)(7636003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Nov 2022 19:08:01.9587 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c42635f0-e48e-453e-bb7f-08dac285b93e 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: CO1NAM11FT067.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB4277 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 This patch adds the following limitations to the mlx5 PMD guide: - With HW Steering and E-Switch enabled, transfer proxy port must be started before any port representor. - With HW Steering and E-Switch enabled, all representors must be stopped before transfer proxy port is stopped. Signed-off-by: Dariusz Sosnowski --- doc/guides/nics/mlx5.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/doc/guides/nics/mlx5.rst b/doc/guides/nics/mlx5.rst index d5f9375a4e..ca555e7ca7 100644 --- a/doc/guides/nics/mlx5.rst +++ b/doc/guides/nics/mlx5.rst @@ -161,6 +161,19 @@ Limitations - NIC ConnectX-5 and before are not supported. - Partial match with item template is not supported. - IPv6 5-tuple matching is not supported. + - With E-Switch enabled, ports which share the E-Switch domain + should be started and stopped in a specific order: + + - When starting ports, the transfer proxy port should be started first + and port representors should follow. + - When stopping ports, all of the port representors + should be stopped before stopping the transfer proxy port. + + If ports are started/stopped in an incorrect order, + ``rte_eth_dev_start()``/``rte_eth_dev_stop()`` will return an appropriate error code: + + - ``-EAGAIN`` for ``rte_eth_dev_start()``. + - ``-EBUSY`` for ``rte_eth_dev_stop()``. - When using Verbs flow engine (``dv_flow_en`` = 0), flow pattern without any specific VLAN will match for VLAN packets as well: -- 2.25.1