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 EA9AC41D50; Thu, 23 Feb 2023 13:49:25 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 95C974319C; Thu, 23 Feb 2023 13:49:25 +0100 (CET) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2040.outbound.protection.outlook.com [40.107.236.40]) by mails.dpdk.org (Postfix) with ESMTP id E6BDB43196 for ; Thu, 23 Feb 2023 13:49:23 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EpZLYloBF8mo+sTC9s33UVfrDtUi5H9mi6DJstg2jyCoCV6OWsyEPWtXvGFQAacuTdleuDNqPdS7iMyUj+TZD6JGIm1jeemo7OVwQik79umcJ+HiaM/2KT0Aa/rYRW/FRQUmXp/cvNa7sdx9smcUpwQJGp1+5YRRmStPGygZ04mcCBv+NvZC6hA/4SQR3GIjpfWcTY9Lk2iJ8KKd30+auDTjiuHJeuRqUVffdj133i0KxZsnpESE3hzKtZEP6TLavdb6YOxCavKKrxlbHAZ7PxezPE6EdRte68O0Fm5wBt9me63ZBHZdfc0z7Vw0PdDULxvMTJ/OplOOaqNw2wZ+8w== 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=173XaQIVVQOsO+kgLh4r+h4TV7PrzvM8nzMK+DG6VqA=; b=L/caMN3OH+h4pFpv7FuXLG7oAwynRkHKaxWme4dMq87bm34jFeDfYxi2IXfL+1bkbug3sE+uMmDM43ZiaW7/qmcB3if4+sSsMIGKyYPUKp+5GHtpU9Hn1n7QcZhWmKs2/NbX0pmyrI6NBKIbFBXPzzyQoqdnl3/Z0UNI3q3HP+rbMOo7JRPch3tfTZ61P0BwNIiyrEUuO0Fl8VbZTlxlrDoEQColrrXkJUCzpLbVkNgMPhEXIsCh0bcXsdjrt3CYJqgp4anHtKPL6zvmgNZYW8Eq+BOP7xoxw5o3w0w0Ey2q9cug10BbYnhB0YEJGUWf6jDxtH1dt5fX08CM9jcEUg== 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=173XaQIVVQOsO+kgLh4r+h4TV7PrzvM8nzMK+DG6VqA=; b=dZHn158iN0sgH8Cw2ME7fP4p1vKcxtsfmC1qPnEETlxufNR1RtvqyBGKViF66CejcNu+EGYLExT2ZI0sjL+lSmeE/9JAUmW0BhT0bZLfSFzlavk53rH2DbHzQ9fTqSgQgvfzdJJa0prs2+ht8BX12FccwYv06pTDoVjmH1T/L28DHfdx0FwwnO7MOSwdb2rzdp1XWRrGJQXl1sZ5mkAm5FXCfWlGPZpbJGT0uIbLpnC7BIIktk+WUJYlPwY0FvAF593g2zg3os0e3Qjv7c4XMHlPgu9KDluXee90bjrVA7eM6I6H3bX6GbIJVxwZju98cwr75yJbfwJQryVqzC8FLw== Received: from DM6PR02CA0113.namprd02.prod.outlook.com (2603:10b6:5:1b4::15) by DS0PR12MB7873.namprd12.prod.outlook.com (2603:10b6:8:142::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.19; Thu, 23 Feb 2023 12:49:22 +0000 Received: from DM6NAM11FT049.eop-nam11.prod.protection.outlook.com (2603:10b6:5:1b4:cafe::3f) by DM6PR02CA0113.outlook.office365.com (2603:10b6:5:1b4::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.21 via Frontend Transport; Thu, 23 Feb 2023 12:49:22 +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 DM6NAM11FT049.mail.protection.outlook.com (10.13.172.188) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.21 via Frontend Transport; Thu, 23 Feb 2023 12:49:22 +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; Thu, 23 Feb 2023 04:49:12 -0800 Received: from nvidia.com (10.126.231.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; Thu, 23 Feb 2023 04:49:10 -0800 From: Rongwei Liu To: , , , , CC: Subject: [PATCH v4 0/6] add flex item implementation Date: Thu, 23 Feb 2023 14:48:52 +0200 Message-ID: <20230223124858.1042097-1-rongweil@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <34229594.ATrlOLLGV9@thomas> References: <34229594.ATrlOLLGV9@thomas> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.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: DM6NAM11FT049:EE_|DS0PR12MB7873:EE_ X-MS-Office365-Filtering-Correlation-Id: 84925673-c4e5-42d0-bba0-08db159c6326 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: J2jtO2u1rdL0CNxzLMnxOaSvEzBKpWY6jvbnboD8GQPQQjY+KUPPg/hncwyKSY9KCfZXpWxd57jDtix3tdyhieFx7czVrOecHUT3A1NmiwwN8G7GgJWBqB6yiAui0cP4dcAht+YhjfxvffGhHNomY4GAfocbATcFps8YZ//W0UEr+mT0qzt3xgupRLk/pCxj4yZtZP4xSQ+W6nzvPl9C+NxAU/5uPB0Txtz5fGG/M0OOl2AOYEMxjT/PrAHldOQxQHo02qPrsU3z7kOhu59ZmylD9GvlOPIYtn9YgjD138P31Nl3sBVDNwBYoBQ21bR9qQx2J7oVl9FeipSx/MZ0wVEz46qamrhZJ1kFz9I6EDc2lKYBhs6UPlWaASE1Sd4CAUD0hHQMpcqgBK55hHRaud1c+yj0/Tm/j/KKcjoImRQ/I7wkTqMPtI2+OIXc4g/8VtTaT30hewaYt5lw4sBs3pLiN98UM+IJf9rhyu/F/KYJREy2DG2KJ9msFJYiIkk2HECDZEa3J87AMAFCtRGnuGihpZQUsqVjWTVW66CDyIbL2LFbejacMkFzv8pjkAMs2NZdO/Bq/WG1gESl+gZNBUyNxHxpZAjsfWRko1K3q1zoEa3S1DedUzdIv/UoRdrasD5Po4p7TXnMfaH99vAcroHs8qYUSep2G+ywbzOaCNeNogWZJaL/cud79tmecTm2YXRaZ3CdGe0vlNe6rvpK2O4bYuHb8OpivQUxSA/L96c= 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)(39860400002)(136003)(396003)(376002)(346002)(451199018)(40470700004)(36840700001)(46966006)(86362001)(82310400005)(41300700001)(36756003)(1076003)(6286002)(16526019)(336012)(40460700003)(40480700001)(70586007)(26005)(70206006)(8936002)(186003)(55016003)(2616005)(7696005)(110136005)(6666004)(316002)(8676002)(7636003)(107886003)(478600001)(82740400003)(356005)(2906002)(5660300002)(4326008)(34020700004)(47076005)(83380400001)(426003)(36860700001)(4744005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Feb 2023 12:49:22.4059 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 84925673-c4e5-42d0-bba0-08db159c6326 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: DM6NAM11FT049.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB7873 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. v4: squash doc commit. v3: add error message for testpmd output. 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 net/mlx5: add error message 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 | 77 ++++++++++- 10 files changed, 473 insertions(+), 52 deletions(-) -- 2.27.0