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 73D6741D3B; Wed, 22 Feb 2023 10:37:42 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 55A3E40693; Wed, 22 Feb 2023 10:37:42 +0100 (CET) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2042.outbound.protection.outlook.com [40.107.92.42]) by mails.dpdk.org (Postfix) with ESMTP id 72E4F40689 for ; Wed, 22 Feb 2023 10:37:41 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Am6DRrrbzZDK39n3DokBzsKKI5XeX15PthYCCZw368HI7gWsOXKVGTREHCWRIcghSgnzaTBALTlrXc9E3OaIWw7J3oj1EEW0EyCenWZD15pZXU+L8HmOd/kOe3Ghm+p7uhuKK23YOVKQNDGFkjRzKtDAGmKfBqXN6mooD2PvwMHjVL6+eo1hiju9llbNNYx9p7t9CxXOXOJtkwQ5+r2SRVsrMTwreBy0VyAFUH2FMy047BOKBhId7ezOAhI5jigadoYWZjQTa+58+Zq2F/7WF4cjKUmZaGxWx+Mt2/+Z+8m4LmcwXtgARvscJC02NroktIdwEUuW4EYuD6TNuL5dfQ== 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=QbOD2xXZpcRmbdocv4+6rJakyqumHU90/TNwe5lJztw=; b=LJcFwHE37yfQ8bN/KZLgqUwKm0prSK/FhRtPMqxw9TOmB5GjHQSh62Z3PO87aX9Rq+sGiEj4+pARMrLmmOK5jUA6mxZmU8zwNTa5M4x48IJR00StB4uzWFl8edxvZeG8AwtmF4a1aXIVWit23e8mS1euMAL54LwM2naWKr7EaUSGikM+mub2MeMmojb+38UvmiW/YzBZ21v3Lx2s71nlAuq94s4vL77oVxXgQej3fK5QjedgFmm4wrtL/bY2runZeo227wnIgoXMrlhGH+RAt00a5p+LywGEiWDkPxtTqzVotBZfSLhQ4dU1Um2cwy2Vx2jwukVHAFqpTCHtdvLLMw== 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=QbOD2xXZpcRmbdocv4+6rJakyqumHU90/TNwe5lJztw=; b=OAr1AfNW/ensIo94HeBL78OJKq21Hi6YJt7elNVM2bHohMkeEagbryZJsr5JsLhBMMwtFHMkDnsSc2BCEBLXrYVJcENB8Rdt0+Z4M4w05G6Q0uzAprjj/gnFD8be9k0GF7z0Cg4Wgt8178bB2q2f+d1T2TkGOnl2nKsr0IOy1DH/soT0NLDnhQNiKLKWUkrWqAqcUaI5P5SjuI8GbN8wc6KNh23hhjl2TM5CKLRNkNTiq+wnHnh8f2069DW5ApqBXwOxEVkDwd8iOm0kaSowmQraKIjd+U+fYl2hBK9H6x5uagzZaH+qVTE0Ll4/qbVPb/xE7i9gnzxCbNtMCo1UBA== Received: from DM6PR14CA0062.namprd14.prod.outlook.com (2603:10b6:5:18f::39) by MN6PR12MB8565.namprd12.prod.outlook.com (2603:10b6:208:47d::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.19; Wed, 22 Feb 2023 09:37:40 +0000 Received: from DS1PEPF0000E62F.namprd02.prod.outlook.com (2603:10b6:5:18f:cafe::bf) by DM6PR14CA0062.outlook.office365.com (2603:10b6:5:18f::39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.18 via Frontend Transport; Wed, 22 Feb 2023 09:37:40 +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 DS1PEPF0000E62F.mail.protection.outlook.com (10.167.17.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.14 via Frontend Transport; Wed, 22 Feb 2023 09:37:39 +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.36; Wed, 22 Feb 2023 01:37:31 -0800 Received: from nvidia.com (10.126.230.37) 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, 22 Feb 2023 01:37:29 -0800 From: Rongwei Liu To: , , , , CC: Subject: [PATCH v2 0/6] add flex item implementation Date: Wed, 22 Feb 2023 11:37:09 +0200 Message-ID: <20230222093715.740279-1-rongweil@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20230215115251.3924578-7-rongweil@nvidia.com> References: <20230215115251.3924578-7-rongweil@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.37] 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: DS1PEPF0000E62F:EE_|MN6PR12MB8565:EE_ X-MS-Office365-Filtering-Correlation-Id: 600ca3f8-2208-46fc-7588-08db14b870a5 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: DavKWlZkdLmRzWk0lDRH/sHFj1nRJwJLMWutBH+bkqdjTPsHRjHOboO6cfv1yS7lb2j1THueEOAJqmgpRGi/K6GNXqnJ2GqccaHkQAGzJxzSjymwT7K0kvNzIOO7AyAtgiPO+y6qG9rEu00SaSksaryI9i9Dl/VPKLxkFOixKlEujIvUyQJMucYekSqqts/HodC/kXR88LJkxK2gq3dZfuN41gHVkpt25QA0flm8wi15vBit/srtVILQmTSJDlDBIlBGMul+AL5hTec3SgZN6v6brVJz5b8pOOPx67fuNK1gzPeJdbnJvo1RtcgXrIFQ+KC4zcgjhmqwHvlVHGdJlnGBdF8Vn7DWywzbmd6LXbT7+oJcsfryFF0VbGAKitY6/U12DDmVgXf4LBm0YdvscSwO2WG4twN1o2aNjk6tmE9uvQzqYa/fLlSZYqWVFWy7sAnJTkLYDaNGp9oQv9iBFEmfx5B3pZrRHNh9kxq3+8JYQKNmBbVmAHAxUrWwz4YuqHvwsjPAouhokSh6uAtuVoRvlcJvv17gawCXm5XH5tA/HBNvi9eG6Ef5Ges9tpYkCv4YVOjEmx+MGi39REG0XVEzEL9NIMXNmDDi6bT9CX7zAwBqJpEzlpcpT4x55tqaw0WT4BjvW9B394nvItjpAsxfFNnogg8EzR45RtQCe0v60WDFr6hieiVzbMws6hgAPUQixGpZFvTUeTmdmvEMmQ== 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:(13230025)(4636009)(346002)(39860400002)(376002)(136003)(396003)(451199018)(40470700004)(36840700001)(46966006)(4744005)(5660300002)(2906002)(36756003)(16526019)(83380400001)(426003)(47076005)(7696005)(40480700001)(26005)(6286002)(186003)(2616005)(336012)(356005)(36860700001)(82740400003)(7636003)(55016003)(70586007)(70206006)(8676002)(316002)(40460700003)(4326008)(8936002)(41300700001)(1076003)(107886003)(86362001)(6666004)(478600001)(110136005)(82310400005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Feb 2023 09:37:39.7924 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 600ca3f8-2208-46fc-7588-08db14b870a5 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: DS1PEPF0000E62F.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN6PR12MB8565 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 Implement the flex item matching and modify field in HWS. Rongwei Liu (6): net/mlx5: enable hws flex item create net/mlx5: add IPv6 protocol as flex item input net/mlx5/hws: add hws flex item matching support net/mlx5: add flex item modify field implementation net/mlx5: return error for sws modify field doc/mlx5: update mlx5 doc doc/guides/nics/mlx5.rst | 4 +- drivers/common/mlx5/mlx5_prm.h | 1 + drivers/net/mlx5/hws/mlx5dr_definer.c | 83 ++++++++++++ drivers/net/mlx5/linux/mlx5_os.c | 27 ++-- drivers/net/mlx5/mlx5.c | 2 +- drivers/net/mlx5/mlx5.h | 6 + drivers/net/mlx5/mlx5_flow.h | 4 + drivers/net/mlx5/mlx5_flow_dv.c | 186 +++++++++++++++++++++++--- drivers/net/mlx5/mlx5_flow_flex.c | 135 ++++++++++++++++--- drivers/net/mlx5/mlx5_flow_hw.c | 64 ++++++++- 10 files changed, 460 insertions(+), 52 deletions(-) -- 2.27.0