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 2F2C642B8C; Wed, 24 May 2023 12:08:48 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 25A8942D38; Wed, 24 May 2023 12:08:48 +0200 (CEST) Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2046.outbound.protection.outlook.com [40.107.101.46]) by mails.dpdk.org (Postfix) with ESMTP id 087DF410F9 for ; Wed, 24 May 2023 12:08:31 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FKmsZxzzqPsJSmm4caKJBRRUnETXFNMmVsl7lRK/RmtFxUHHV/FbLlL9vkCWSsfcLYoHioxK2VeO4+iopbukI9iGGD0Yy7HJtRB1lG+KkPQ9pnn92DvVzxBEENQ9SmUuSfky6TapR4+HaezR0g6kLKNLsWsL9vSJspgs24qNDUKJpn/2pseYdHXgwBc0A+Rx2b0Ee4FRSUyVQ25Ijr3qN8Xk93WRmipJe65HT9gOugm3sX7jkseTURVveJ1Gkzn1Gp2Q47X4BLKWOVOwiRV0khB/Qm/PGSEFYB/mHzLoY8dspvYzyLgnkvbcrB6fi2Q/iNyEQnY+Pb0TyJl3t/JqMQ== 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=zc6XQMcNvcSf/Il+B0EqzzMJup5gy42wem25kSIT/FI=; b=EZ4EIBINR7kW5SjYKkzD02UKW5Ty/tA7gqS0VtlZHf+tUYtJoC/Ohp1O50TNOYI+/Izh6CpttJgJNXd+nNgHNywLw1TV09BhziRGul0OrwPhIlY+0Ypk1RIYXOfVwf4YYQg9yRcxUzneWVA6lGmo0aMkosBJ/OamkJhc2qn1KyiGFQCDZVEch+sMoBcaH790QZtrdpF6/ulZ6uEhuKLMIwVUxaoDzo4gpDYHYi9poHy0vmX8fmMo+mPqYtSAqYXb+xYFPFBd1utaS4uzSuDzD418ZTPDR5KntZwXP+jNDSavDX3Etur2GMDDsiWiRoHNlugLkN3GKqTNMAfhVBHB9g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=monjalon.net 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=zc6XQMcNvcSf/Il+B0EqzzMJup5gy42wem25kSIT/FI=; b=pkV9Z2cMCnG7wDTyZMIUOp5T/32vtN6xJi9hQJoS7XS49Mm2fo4ZlqfVI8pteZLqiVwLJk3P+jIwgklxCYgdBupEQ5tWHNU3z3+2U6U4vdAYh0fpJt580zziNCvqxg5ZYDkD6W/V8hxZYjaJgtO8aU6JOtB3L9uOw3NnWWZrE4zqFsyJnQDQpH220w4MsQlizMD05MuLG3DpijM3tZ9rve5wzev1WRdiF7WlqZ6UK4kCtAbZbvtXuevChvzw4EwaG7XFh/ra6vMUE/WbIuj/MC7bnoQS25FUGrVmDP62bCW2qpSZnqgHpKAAhIOsUz1OdvyYmM7VvuIs+TwhNrKEgg== Received: from BN0PR07CA0029.namprd07.prod.outlook.com (2603:10b6:408:141::11) by MW6PR12MB8868.namprd12.prod.outlook.com (2603:10b6:303:242::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.28; Wed, 24 May 2023 10:08:29 +0000 Received: from BN8NAM11FT025.eop-nam11.prod.protection.outlook.com (2603:10b6:408:141:cafe::aa) by BN0PR07CA0029.outlook.office365.com (2603:10b6:408:141::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.29 via Frontend Transport; Wed, 24 May 2023 10:08:28 +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 BN8NAM11FT025.mail.protection.outlook.com (10.13.177.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.30 via Frontend Transport; Wed, 24 May 2023 10:08:28 +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.5; Wed, 24 May 2023 03:08:18 -0700 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.37; Wed, 24 May 2023 03:08:16 -0700 From: Dong Zhou To: , , CC: , Subject: [PATCH v2 0/3] add support for infiniband BTH match Date: Wed, 24 May 2023 13:08:02 +0300 Message-ID: <20230524100805.2215154-1-dongzhou@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20230511075504.664871-1-dongzhou@nvidia.com> References: <20230511075504.664871-1-dongzhou@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.35] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT025:EE_|MW6PR12MB8868:EE_ X-MS-Office365-Filtering-Correlation-Id: 1cb171a6-4bb0-4afc-25f9-08db5c3ed239 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: WqJ9jGPD9j7NQzwVKikSz7xa2qd6ThEAfY1t5J7hcQfHYG+VPoStLyedDzqwd1nYq+Waw6KppLi7oQ+ftI9OIv0ebFt+TZEiVnD7/Gn+qvprTEwbh1nESAuM4seqkxWs3cqcbNSACROhKUaLwNgrLGPBwKaUt5jdhknpNP9QpS9LivAJrQXtITJMpQszlaHGHVTyj0ssLeAC3egFV/lEHi8b2UgVWU5VSvkC83OrIQw4OAVLxSZV+jRcRmVdEnrMk3wQLo20UdMfJfIeTnZej5nGCkNy6uJPUgOjUHmh2EGTuB9EguP5g4HrMnrYemAWEbHXq+iOfiT6yRxWDZQYtnLHdM7JdOU9QDh8bWNm0EGvBqLYROB0qGXL8hWZj6F6JxkQlB+yslgtGPPIVMGWsDAIzQnr1MRwKZelT3RVuZ5hQ4ISjrW2oQP+dn8LdrT8sM4jFQL3ghNDE2WXOa0EOTWQsV5tyTq2mId++81b1tkYIafYWDS/XojZzkJw4t/0v4xwQAglwCu4JkMlPpscDj+lENk6TYz9ci/7E9j2M/VBHPg+yCuvEDS9JrJgz0dZbX9nRnfaPx4KTY2lkY1f1EB8FZ7Y5DSkaABhSDLnuT/JnZ+UW2DiclAGtbzZdHpBe1Ip/qbcD/zpILROHiUYEU60kvODToFipKpasK01V1820mmRqD9dvJKjV0sGlXIScjVi5nLvrvxe9eJkUOkCa2MFOV2zCom7CJOL6+FpFKY= 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:(13230028)(4636009)(346002)(136003)(396003)(39860400002)(376002)(451199021)(40470700004)(46966006)(36840700001)(82310400005)(70586007)(70206006)(478600001)(41300700001)(7696005)(6666004)(54906003)(316002)(110136005)(4326008)(86362001)(5660300002)(8676002)(8936002)(107886003)(356005)(16526019)(6286002)(7636003)(26005)(186003)(1076003)(82740400003)(55016003)(40460700003)(336012)(426003)(83380400001)(2906002)(40480700001)(2616005)(36756003)(36860700001)(47076005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 May 2023 10:08:28.5714 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1cb171a6-4bb0-4afc-25f9-08db5c3ed239 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: BN8NAM11FT025.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW6PR12MB8868 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 new rte item to match the infiniband BTH in RoCE packets. v2: - Change "ethernet" name to "Ethernet" in the commit log. - Add "RoCE" and "IB" 2 words to words-case.txt. - Add "rte_byteorder.h" header file in "rte_ib.h" to fix compile errors. - Add "Acked-by" labels in the first ethdev patch. Dong Zhou (3): ethdev: add flow item for RoCE infiniband BTH net/mlx5: add support for infiniband BTH match net/mlx5/hws: add support for infiniband BTH match app/test-pmd/cmdline_flow.c | 58 +++++++++++ devtools/words-case.txt | 2 + doc/guides/nics/features/default.ini | 1 + doc/guides/prog_guide/rte_flow.rst | 7 ++ doc/guides/testpmd_app_ug/testpmd_funcs.rst | 7 ++ drivers/common/mlx5/mlx5_prm.h | 5 +- drivers/net/mlx5/hws/mlx5dr_definer.c | 76 ++++++++++++++- drivers/net/mlx5/hws/mlx5dr_definer.h | 2 + drivers/net/mlx5/mlx5_flow.h | 6 ++ drivers/net/mlx5/mlx5_flow_dv.c | 102 ++++++++++++++++++++ drivers/net/mlx5/mlx5_flow_hw.c | 1 + lib/ethdev/rte_flow.c | 1 + lib/ethdev/rte_flow.h | 27 ++++++ lib/net/meson.build | 1 + lib/net/rte_ib.h | 70 ++++++++++++++ 15 files changed, 363 insertions(+), 3 deletions(-) create mode 100644 lib/net/rte_ib.h -- 2.27.0