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 A98B041D43; Wed, 22 Feb 2023 22:23:47 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9C3214315B; Wed, 22 Feb 2023 22:23:47 +0100 (CET) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2044.outbound.protection.outlook.com [40.107.93.44]) by mails.dpdk.org (Postfix) with ESMTP id A97C343135 for ; Wed, 22 Feb 2023 22:23:46 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JOWPagl8NB+JmLHBoREXipjTsn9dyWaqS5uliR7uZ3XkJD7MhIsmMc564UgRhLO7dCCleyU5yzE+YiZ6+HJl0XHBBheEuKWM4zmlYGy3EdNaCSP3oOfJ9b89wHnyO+KYV2YI4TPof7YHW2bvgwG5vmK/Fq5d6AZqx/4htfl7ESh0N/z5GVpBHsbmw0yCGN1Sa6l6DtOc+sZ0O6myd/nl27NPbo1S0Ij6JEXJwelLIM8lQSOPLhb/z9lBl/FaYwDPgSiJ4qs3eJCGsn8Uvi1MppC6Fhhk+1XHOZq1P4pZl+o7xZcnw/iMlnhNdjw8KzTM6Wnpi/nLc3PrQ4bI/Yhl+w== 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=omB+2giC3e7IITgOdRmD7cGjck4u9zuo3gExbEMrNLc=; b=RLX/1SjbsVkr2rqcmf7nYP2+FBt5SmPgJo/zA32akEQUWvlsB7qXu34YGqyx28AdTJ8BdVVxslzEITwILhJPfoMCRHQLiykXStlcWbRY95+NrTilpzmTYwC9IXxfNfM/aLNdxcRpbZDd1EZoF5rAcksCCsLlRYT+y9o8+tvtzAVndjnVpswhVGX9jSDCEFcMvfmnH5XRcWOgwIUSJ7DUkaEQ24+/2Y15+ijjqTWNJSgyygZdLGldY/xXGjMPSnAfzL96GvewajIhFZvlYOhb1q7zGiDeNFp5zbCHv6apYCL02W89h1Zdjk+HW/HtPCMs6hUyWwMMQTP7Rck9V5+lEg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.233) 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=omB+2giC3e7IITgOdRmD7cGjck4u9zuo3gExbEMrNLc=; b=JlSIVrtmMIvZYxHY7oOo4pABIgFjQLyDSkhPi6c+8gWD1Kg23aYGQLVbaOUEwAD8p9p+Gv0HYy1cihC3aFd8A1YivTLV43y6XA4mgxTJaLKAC6YwIxQt7jbUsqzdnt7rZvNrTZSFTqsLrSg7dL2Yq1wLTKP7uipvc2pvrJoRaDr5sV4OKjWQtmBP2VWC6KMwOkntJqRi0kvvaoeMfFhpv3X1Qi0vF33G9PP/AJWGIr+/jI+2Zo1DJu3h6MOeuNcGQlffERirPnioZH9hPknvdAwgfIagS6m96/7puX2NEt8wmwkoV5F9H+eg5UajthDRZEalyb9l3aRE21vRFaxbTA== Received: from BN0PR02CA0059.namprd02.prod.outlook.com (2603:10b6:408:e5::34) by PH7PR12MB7211.namprd12.prod.outlook.com (2603:10b6:510:206::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.21; Wed, 22 Feb 2023 21:23:45 +0000 Received: from BN8NAM11FT102.eop-nam11.prod.protection.outlook.com (2603:10b6:408:e5:cafe::42) by BN0PR02CA0059.outlook.office365.com (2603:10b6:408:e5::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.21 via Frontend Transport; Wed, 22 Feb 2023 21:23:44 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.233) 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.118.233 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.233; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.233) by BN8NAM11FT102.mail.protection.outlook.com (10.13.177.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.21 via Frontend Transport; Wed, 22 Feb 2023 21:23:44 +0000 Received: from drhqmail201.nvidia.com (10.126.190.180) by mail.nvidia.com (10.127.129.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Wed, 22 Feb 2023 13:23:20 -0800 Received: from drhqmail201.nvidia.com (10.126.190.180) by drhqmail201.nvidia.com (10.126.190.180) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Wed, 22 Feb 2023 13:23:20 -0800 Received: from nvidia.com (10.127.8.13) by mail.nvidia.com (10.126.190.180) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36 via Frontend Transport; Wed, 22 Feb 2023 13:23:18 -0800 From: Michael Baum To: CC: Matan Azrad , Raslan Darawsheh , Viacheslav Ovsiienko , Ori Kam Subject: [PATCH v2 2/2] net/mlx5: add MPLS tunnel support for HWS Date: Wed, 22 Feb 2023 23:23:10 +0200 Message-ID: <20230222212310.3295762-3-michaelba@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230222212310.3295762-1-michaelba@nvidia.com> References: <20230222212310.3295762-1-michaelba@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT102:EE_|PH7PR12MB7211:EE_ X-MS-Office365-Filtering-Correlation-Id: 9e6545d5-7ae9-476c-10fb-08db151b13ed X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /XJbgSi1iTYDya49EFa6Ycmucp7E9m9sOhmUHKc/O+7JNDeaM/urB0gZpQ9IaAM5EWBz/DtYoItFCPZxmnRFcUWamOzQ76s2LYpeglSzR4smqFcDPxC/j77xlrHWuf1n9X3ynTo+W1HB6Ee4moeiXSOefEr7lbVFkxoQI5bxYF4KKOhB0z9pBHUIHMQVMB+dt2lGPHvpmf3lwGq2CfJVaOc+NXAm2d/ihAOidulAGq1ny2tIvYK5kJYu5K5atDQaGyVzV16HAUKewwYN0QDktYzcWq8xnqxZsL6MX2J5/EHK5TLPpSflEMz16Vy63gTW17ouZt7UobM0y177yj7ehgKc0XfYCsDLAi44mPWPfWGZsNbRhtJgm19dHEPY/wmyZYWXwNGgu64thiWIwcuCw7/z+4j/QzwrsQ9xQf2SETLeDlFKlMqhbxBIs00qKB6X1mRipaY/r4s93C49w5Auaqgl9Lxip28tJuO3ljU4x2jyyKSIjiVXDHZ4whjgv0pwPAmOtLODcwQrwd7wC0koBJDDXu6cnHvk0Jq67TugIpuH0lMAdvbO0qIRZDiPrD8VAFb6ypxVOWGQiWO2UM4Vg+m/YxVivQJ9osxgEESlYtdfvFDdWXkToSsOJFq3+yijZ048gIwaIiBuBQhbru9ncGhcBNHEjiXo76inNHzsBrwiu9GT/o7BcQL11xqiJLby0L9tkBVWsxBkaHl+8B2KUekozWqGnDIraVT6GeZKPsA= X-Forefront-Antispam-Report: CIP:216.228.118.233; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc7edge2.nvidia.com; CAT:NONE; SFS:(13230025)(4636009)(376002)(39860400002)(346002)(396003)(136003)(451199018)(36840700001)(46966006)(40470700004)(2906002)(6286002)(186003)(7636003)(82740400003)(26005)(1076003)(8936002)(356005)(6666004)(107886003)(40460700003)(478600001)(36860700001)(70586007)(70206006)(47076005)(2616005)(34020700004)(5660300002)(426003)(41300700001)(86362001)(40480700001)(336012)(36756003)(316002)(7696005)(83380400001)(4326008)(6916009)(8676002)(55016003)(82310400005)(54906003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Feb 2023 21:23:44.3629 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9e6545d5-7ae9-476c-10fb-08db151b13ed X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.118.233]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT102.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB7211 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 Add support for MPLS tunnel item in HWS. Signed-off-by: Michael Baum Acked-by: Ori Kam --- doc/guides/nics/mlx5.rst | 4 ++++ doc/guides/rel_notes/release_23_03.rst | 1 + drivers/net/mlx5/mlx5_flow_hw.c | 1 + 3 files changed, 6 insertions(+) diff --git a/doc/guides/nics/mlx5.rst b/doc/guides/nics/mlx5.rst index f9b3d43378..4142933b0d 100644 --- a/doc/guides/nics/mlx5.rst +++ b/doc/guides/nics/mlx5.rst @@ -245,6 +245,10 @@ Limitations - L3 VXLAN and VXLAN-GPE tunnels cannot be supported together with MPLSoGRE and MPLSoUDP. +- MPLSoGRE is not supported in HW steering (``dv_flow_en`` = 2). + +- MPLSoUDP with multiple MPLS headers is only supported in HW steering (``dv_flow_en`` = 2). + - Match on Geneve header supports the following fields only: - VNI diff --git a/doc/guides/rel_notes/release_23_03.rst b/doc/guides/rel_notes/release_23_03.rst index 2ca30b3b49..8a3988c033 100644 --- a/doc/guides/rel_notes/release_23_03.rst +++ b/doc/guides/rel_notes/release_23_03.rst @@ -114,6 +114,7 @@ New Features * **Updated NVIDIA mlx5 driver.** * Added support for matching on ICMPv6 ID and sequence fields. + * Added support for MPLSoUDP in hardware steering. * **Updated Wangxun ngbe driver.** diff --git a/drivers/net/mlx5/mlx5_flow_hw.c b/drivers/net/mlx5/mlx5_flow_hw.c index a9c7045a3e..80d4beeecd 100644 --- a/drivers/net/mlx5/mlx5_flow_hw.c +++ b/drivers/net/mlx5/mlx5_flow_hw.c @@ -4733,6 +4733,7 @@ flow_hw_pattern_validate(struct rte_eth_dev *dev, case RTE_FLOW_ITEM_TYPE_GTP: case RTE_FLOW_ITEM_TYPE_GTP_PSC: case RTE_FLOW_ITEM_TYPE_VXLAN: + case RTE_FLOW_ITEM_TYPE_MPLS: case MLX5_RTE_FLOW_ITEM_TYPE_SQ: case RTE_FLOW_ITEM_TYPE_GRE: case RTE_FLOW_ITEM_TYPE_GRE_KEY: -- 2.25.1