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 9ABA64389F; Fri, 12 Jan 2024 08:51:28 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 293EC4028C; Fri, 12 Jan 2024 08:51:28 +0100 (CET) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2082.outbound.protection.outlook.com [40.107.243.82]) by mails.dpdk.org (Postfix) with ESMTP id 65ADC4025E for ; Fri, 12 Jan 2024 08:51:27 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WA0tz13xA6bmjbjmYzTgHJCiQqm/t7W7F2PuouXP7W7VUh+5+GANm2DbV79as2LjzWmkhrm0ccxadRDa2TEYkC+6lnxAxzFsOYEjNp59sz6fO1WzslUWSp20cB/KTtOrddh2DshK6/FZIGeiqPoehWhLBLDfteAG6KpmcsebphhD8ShfHxHJBnCnOvCuJbCLdU0WtScbMCBk53Qb2/OqpDbnfxre84WIZN4U3rXWCk1cLkXemAQdRtGbkndRq2mQBZWUDNef4gsVIOHt66U6Rp4JxtSpI0weIOOLa90PPhjMNQYxfPw9HtnAzot4S5f2Q7xHyV8/fybGH84vALamwQ== 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=pSPaYMcupXDgVSO4oR2+wMMOePYW1xdreenzyhEjEVY=; b=IzDZY3g5D9fTlDOVYAdXaEmawb3eWKMFEE/sIFOCwxhkpbb2yn5yeBGu+/ViT3Fcs7F5QrZHg0bpifQ6IoClizbw1ZqOAlEvgLd+92w4eNM9qwpD9NrtVSq//RGXTTOhA+WKT9AbgVJchvf7qHejwJ5Oohzd1/UVl7PuqV6ACAltbclri3WtDmEyCWNy7XTDymjv7W2oGXvQYsH++EZ8SVdDTxElfArbbPj65Nidvb7m81iePsQU1qCjH69DrgceLps7jLOzie3sDvR+MLrUpZFuOxJcCux+As0X1fxQpdjfAlVUUdOZqGgyMMFaiWd2/8HrrIZ9uVikRxs6u9ndgQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) 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=pSPaYMcupXDgVSO4oR2+wMMOePYW1xdreenzyhEjEVY=; b=JbYI9Tq16N3xBvAAuaDWROPCc7E8/CFCvFjEO/iHuZgRLUp4Ht2WRhpfX4FZjmmvWkPv4sQL94cuGOhGHk3nRysKastcBgnLGajYDRUCg4YIdWFhLw4S3H0FiFQ9+rhpl9cYXliRNPaSTx2O6fnhAuxaFhiwq9CkUlmvueOenqnqu8PCbWhSep9nGIsaHLVgv8xnIUbRslP1/qdjGuvrFniCs1/GXs+o1AKBpxW3+3SOhlSpONvLBJxlvyKM85dXsgXJNzq0ffQbcW8VA+kbUuPtGkmsLW9mGB7OsmyL3jsxpvdc5X6S6aKuixclGPFRTUMrtODvJrL4xStOdDRvOw== Received: from SN1PR12CA0083.namprd12.prod.outlook.com (2603:10b6:802:21::18) by BL1PR12MB5222.namprd12.prod.outlook.com (2603:10b6:208:31e::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.19; Fri, 12 Jan 2024 07:51:25 +0000 Received: from SN1PEPF00026369.namprd02.prod.outlook.com (2603:10b6:802:21:cafe::3d) by SN1PR12CA0083.outlook.office365.com (2603:10b6:802:21::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.19 via Frontend Transport; Fri, 12 Jan 2024 07:51:25 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) 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.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by SN1PEPF00026369.mail.protection.outlook.com (10.167.241.134) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.14 via Frontend Transport; Fri, 12 Jan 2024 07:51:25 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Thu, 11 Jan 2024 23:51:12 -0800 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.41; Thu, 11 Jan 2024 23:51:10 -0800 From: Gavin Li To: , , , , , CC: , Subject: [V1 0/2] use traffic class PRM field for IPv6 modification Date: Fri, 12 Jan 2024 09:50:53 +0200 Message-ID: <20240112075055.1288263-1-gavinl@nvidia.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.35] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN1PEPF00026369:EE_|BL1PR12MB5222:EE_ X-MS-Office365-Filtering-Correlation-Id: ef2d160e-b3c5-4ea5-c54e-08dc134346d3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Mx0vBLmsApvxyqt3Zxrsk7+fCrE5vQANygLqV1rDTrovATjVxS9g4rV4DSc7qRKotRlAWqWCuX0NCTbSmdbombyGRPsTiV4Fkjj15M/AUzW2eBV230QHyJL9cSkq7GSqG5/hNPAzt2JcNln/rXxoub0Sj70z5py2GkJFiXcBSJPTqzLdD03yJMPse1oApWnGdgYso7Aaasu8q5+hz/rHpPDPgdt0RRR60SgUtLYASsmfhuDXiAWz0uSVDuSEDIU5KcbWicYPMpKlTIbMfi795scnp/z5MObBO0388egdHY0FaIWuzYsmZeP1m01ojnQazA9Jp0EfmGVIY2S2i4nRZxcF2C2K5hgTGn6vAGPf7xjG0rjhHL82462v+vNUiMAdtJjhN6oVe5D07/+fUNf3Nd9ko9W4a0cstS8dab+vumhWzMZc+loayjoCq9VKNhFeZ8tPUXxDFPDxENaoxfDu+OUPD+7aGagALcy4GIBqmQIPqLSKZzAomblQ/UhpJcbiey1OKKI9Srps1c25uA+Y4xcODqYXThV+bH6rDpyfPD4QSKKzzWH4L7c3XGslnxf52N+cQmp2SwSgHNl+pOw+9h1nCSsq68DR3EVJ5jXt1Rb/eXsGAv2cRe+O2/o/Cf9YY+vPWKWCzSHMX1wwqcmLZA/XY0lvFAKl06vRT641E8jWC1oNKNSgLbmCMUaLUiKuGIf9YJhmZbxyE+m+XvNZNbfPsMFl6e8MN1ZFb/swUVMEX15qkrf/8rRGuPzbMZQnC+1eJbitVhnWpEU+ixhdFA== X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230031)(4636009)(396003)(346002)(39860400002)(376002)(136003)(230922051799003)(82310400011)(64100799003)(451199024)(186009)(1800799012)(46966006)(40470700004)(36840700001)(7696005)(6666004)(478600001)(70586007)(6636002)(70206006)(316002)(54906003)(110136005)(47076005)(16526019)(36860700001)(6286002)(426003)(336012)(2616005)(26005)(1076003)(83380400001)(107886003)(41300700001)(4744005)(5660300002)(8936002)(2906002)(8676002)(4326008)(36756003)(82740400003)(356005)(7636003)(86362001)(55016003)(40460700003)(40480700001)(2101003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jan 2024 07:51:25.0381 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ef2d160e-b3c5-4ea5-c54e-08dc134346d3 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.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: SN1PEPF00026369.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5222 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 New field ID OUT_IPV6_TRAFFIC_CLASS for IPv6 was defined and will be used by both IPv6 ECN and DSCP. To apply the new ID and keep backward compatibility with different RDMA core and FW releases 1) detect the support of the new ID in RDMA core and FW. 2) apply the new ID if possible otherwise, keep using the old ID. Gavin Li (2): net/mlx5: discover IPv6 traffic class support in RDMA core net/mlx5: use traffic class PRM field for IPv6 modification drivers/common/mlx5/mlx5_devx_cmds.c | 3 ++ drivers/common/mlx5/mlx5_devx_cmds.h | 1 + drivers/common/mlx5/mlx5_prm.h | 8 ++- drivers/net/mlx5/linux/mlx5_os.c | 5 ++ drivers/net/mlx5/mlx5.h | 1 + drivers/net/mlx5/mlx5_flow.c | 42 +++++++++++++++ drivers/net/mlx5/mlx5_flow.h | 4 ++ drivers/net/mlx5/mlx5_flow_dv.c | 78 ++++++++++++++++++++++++---- drivers/net/mlx5/mlx5_flow_hw.c | 7 +++ 9 files changed, 138 insertions(+), 11 deletions(-) -- 2.39.1