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 F2FB543258; Wed, 1 Nov 2023 05:44:45 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D567540294; Wed, 1 Nov 2023 05:44:45 +0100 (CET) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2066.outbound.protection.outlook.com [40.107.223.66]) by mails.dpdk.org (Postfix) with ESMTP id 582D340270 for ; Wed, 1 Nov 2023 05:44:44 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=loLt2IYtAVM0zb8JKaRfa3oJS3CnrbBhyMbua9oaUhOwaU9mDYHC9FizxKxzX7/NipFIP73FrTqgDJBBvhP6DZNWYS5W5laghMkf+2vZMpMrj+az0jVfKIWVFadHMJhSaAn+JIiCPPJb93oHur2fgYHVI+eB/PuThWL0cWUHdhHSyB2hx9j314mro4F1/yNfg65sCRDHIp/Y4q9xspE0ULZlwfZBJGvwPH9hdtpp8FRa7fvzm70td+Uec5yyOs95iRwtVxIJ+Ad0O3BPzNoarBpC/PmHBGh1cXSBs7EWb61z9sDKisvR8l2puet3J82xZB5jJKftbDFNesOK5v/ECA== 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=UNtVRZQBuu2o8gICEKU9TfQp9wLUBvMOyhDTGnxJofE=; b=W/EczYkR3+h0o7j/mEvoO8oBgiSgQYpWerNeN7GvUmGWShZynp5o/PAKBEB8OS/rfHxkgAhAr4KmYW7vAehaA8uzHIXxXAOOR1jwsnm2Y5EYpYsgSxtw/yOOBPTYoqBDMGf4b0P50cZiI1K3v68g/Q0ZeQY+VtbJgjF94ywJgmXjjq8sozgTzwi43UQTLJFCfzhu0Y8rvV3+rxvr+c6Mgce8gwUhPJHiA3umjGGURdUFKolkjZOHYL+E8n+V1MZFYtzvidG+lZ1KQQJ7DCs0OvN5SDmbg/gU1XTrUoLZv5LS2A/3Pt7JZLjaPV0RHS1U/CjLkDN4xw9eGlrfAvFaDw== 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 (0) 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=UNtVRZQBuu2o8gICEKU9TfQp9wLUBvMOyhDTGnxJofE=; b=seAnnqiCWdz/B4RfC6SZ5ibwBivdox+twO5BYpE/sQDSz4YmHy/UXBhCpuGgbEUGCovxqQ1WrDVt357CWi9vI5sjEkFHPhT/FiFaAZnns8V90wU4z3nIIWoJoZiFYWXqlaANJIkDhxT+268P80Yhzbo035pf8pJXWRhbEqdldwaK7p8r7ZNHqjyTnBHAmcwqadpV/YvB2G4Pktr9aWeHQ/tu27lvFhzgKweorwmCbFTj1jDWo6Cq9YL0NzCGhDDe+hzBrQkpbR8IjM2yiJU0RQeH62Gt2cq812nzqhJOTBargI2DKyAIVr6h6sKfqnuA5/dUOSSdjUDZH8nmc/5m7g== Received: from CYZPR17CA0012.namprd17.prod.outlook.com (2603:10b6:930:8c::16) by DM4PR12MB6639.namprd12.prod.outlook.com (2603:10b6:8:be::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.27; Wed, 1 Nov 2023 04:44:42 +0000 Received: from CY4PEPF0000FCC4.namprd03.prod.outlook.com (2603:10b6:930:8c:cafe::c5) by CYZPR17CA0012.outlook.office365.com (2603:10b6:930:8c::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.19 via Frontend Transport; Wed, 1 Nov 2023 04:44:42 +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 CY4PEPF0000FCC4.mail.protection.outlook.com (10.167.242.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.19 via Frontend Transport; Wed, 1 Nov 2023 04:44:41 +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.41; Tue, 31 Oct 2023 21:44: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.41; Tue, 31 Oct 2023 21:44:32 -0700 From: Rongwei Liu To: , , , , , Subject: [PATCH v4 00/13] support IPv6 push remove action Date: Wed, 1 Nov 2023 06:44:06 +0200 Message-ID: <20231101044419.732726-1-rongweil@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20231031105131.441078-1-rongweil@nvidia.com> References: <20231031105131.441078-1-rongweil@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.126.230.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: CY4PEPF0000FCC4:EE_|DM4PR12MB6639:EE_ X-MS-Office365-Filtering-Correlation-Id: 9d8b44d4-b5ae-4a68-1595-08dbda954358 X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zxpTJpnycN7O96ZxvVt1z3V4p09fcYM3pb6JsNiwRi2QR38/b1O/bTgAt/wF+YZQmpAV8GUEp0bsuW7+sOs6/U90MgNEdcLVgDY4C2KsvyosL4u4OJ+4ArcM/xsq1pPW0eoymbRv0FJUuQB/dTy48eO/EEONliYdJzyPg2FtMKuL+Su3K9vu/GHIKnCVNtlitoWRfDki0PrY+1ZGhptQrfcqOrMnBKunPW+rRsjvGOhi/S0Z8lRhWFbHf2/2/zi4t11qesqMeSln4xwQQRRr4Uq1whqvlgTU1wWLRMuQynMZDrCaVd6sRSvzFJyq83x3ah6R8P0639TLlN0D83If4pImGikOTz7nsoXAQNUvLph1oP7Rwddvc36VCrMGvEH5pvF7keyoRU+FUV1pHTeY266nTCIK/CrDyaKhJ9msJUjovvPRjLnq/oHJv3VGgC/roQ1phV5ZO6G1wfChvbfXmM6Q+gSOGiuwFsCfbv519hISceSBy8b5dn0pcQnMzBtOLURf6/22e8ZECN3RUnOxGP1XoymfXCoZlMxZEIP/2xpUhUiyXRt7tR6JB0VXqLK/dlfwJsOfgpgloqNAZ1lTOP4x52FWEVqfSw0QmpcjSy5mczJIP5PwgQxJ5DD1DdtvSaS0UqTJAEZMIwOuoIY0KNd1H4fGvCnq+4jeBUEywHZbdPmDpACRgnXRQK5kSa0KTjap7J7y/LBrrWHJJZ7mhhVJmZ00R0Q/NmhF1R4wt2I= 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:(13230031)(4636009)(396003)(39860400002)(136003)(346002)(376002)(230922051799003)(82310400011)(64100799003)(451199024)(1800799009)(186009)(40470700004)(36840700001)(46966006)(55016003)(40480700001)(6286002)(16526019)(1076003)(26005)(2616005)(40460700003)(86362001)(36756003)(7636003)(82740400003)(356005)(2906002)(5660300002)(83380400001)(7696005)(336012)(6666004)(478600001)(36860700001)(426003)(47076005)(8676002)(8936002)(70206006)(316002)(41300700001)(110136005)(70586007); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Nov 2023 04:44:41.6479 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9d8b44d4-b5ae-4a68-1595-08dbda954358 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: CY4PEPF0000FCC4.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB6639 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 Support IPv6 extension push/remove actions in MLX5 PMD. Routing extension is the only supported type. v4: add more dependancies. v3: rebase. v2: add reparse control and rebase. Alex Vesker (4): net/mlx5/hws: allow jump to TIR over FDB net/mlx5/hws: support dynamic re-parse net/mlx5/hws: dynamic re-parse for modify header net/mlx5/hws: fix incorrect re-parse on complex rules Hamdan Igbaria (2): net/mlx5/hws: support insert header action net/mlx5/hws: support remove header action Rongwei Liu (7): net/mlx5: sample the srv6 last segment net/mlx5/hws: fix potential wrong rte_errno value net/mlx5/hws: add IPv6 routing extension push remove actions net/mlx5/hws: add setter for IPv6 routing push remove net/mlx5: implement IPv6 routing push remove net/mlx5/hws: fix srv6 push compilation failure net/mlx5/hws: add stc reparse support for srv6 push pop doc/guides/nics/features/mlx5.ini | 2 + doc/guides/nics/mlx5.rst | 11 + doc/guides/rel_notes/release_23_11.rst | 2 + drivers/common/mlx5/mlx5_prm.h | 13 +- drivers/net/mlx5/hws/mlx5dr.h | 105 +++ drivers/net/mlx5/hws/mlx5dr_action.c | 873 +++++++++++++++++++++++-- drivers/net/mlx5/hws/mlx5dr_action.h | 32 +- drivers/net/mlx5/hws/mlx5dr_cmd.c | 11 +- drivers/net/mlx5/hws/mlx5dr_cmd.h | 3 + drivers/net/mlx5/hws/mlx5dr_context.c | 15 + drivers/net/mlx5/hws/mlx5dr_context.h | 9 +- drivers/net/mlx5/hws/mlx5dr_debug.c | 4 + drivers/net/mlx5/hws/mlx5dr_internal.h | 1 + drivers/net/mlx5/hws/mlx5dr_matcher.c | 2 + drivers/net/mlx5/hws/mlx5dr_pat_arg.c | 41 +- drivers/net/mlx5/hws/mlx5dr_pat_arg.h | 2 + drivers/net/mlx5/mlx5.c | 41 +- drivers/net/mlx5/mlx5.h | 7 + drivers/net/mlx5/mlx5_flow.h | 65 +- drivers/net/mlx5/mlx5_flow_hw.c | 283 +++++++- 20 files changed, 1438 insertions(+), 84 deletions(-) -- 2.27.0