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 9CD3AA0544; Tue, 7 Jun 2022 13:19:23 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 858734069C; Tue, 7 Jun 2022 13:19:23 +0200 (CEST) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2084.outbound.protection.outlook.com [40.107.93.84]) by mails.dpdk.org (Postfix) with ESMTP id DEA694021D for ; Tue, 7 Jun 2022 13:19:21 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QC0BRdhthgIU092F515ihSAU5sn76kRxaSkftsXulUE6nqh4gIF0N7YI/a6AT0HE3OSIamXIXqEvpSv9s0Fbf51u3h2xHhdwelE5xqxiEw1iy20s7aI0wvNR5/S0gbFOUcboQWkqOuMdndIQsTnb0CxYwB4Y4Jd9YCL3naX3v/8O45XGrim5LqbOEP7NZ2X9zK+0Pd4bvAJJv4luFIvlHHy1QWCDLrF5sNMAHaW1uijCkp6axmYAipsOKy4Zi+KQbQa7IF5KduvrwtnAwC+YMLWumuzqYbGjFWWeTBoQsHuG/DHp5y2mPXtxDuIQDcCImdneRE4L50CfjKPUKgwWCw== 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=qHJHjC+FfSeZNQb7rbvPb+FUG9FaFa0Tr4DU3M6PouI=; b=JXdDuFxvk24KnWOhfj1u8K9ZOZix7fK/RbHxfiIGjg/8mvUjcEnD5fvReeJg03cKFz6q89qbPPg7gWSlW1M+eUaxCjqJPeWfAYQ3TkKBt1JJVRWHWKwozNX8l9ilUDP71kdlveAd1c3r9idCHWxdrGbGKNSNgipu575+lGSykU3YnRg7ZUQy96GGAHSC4f8sGIYC0q/cY2DI1uPEo5Slj5K/u/FX1l9E9+EWqtvhHWLYNf92SiyB0lQ7RSo9cmklQv4qGJ4JpzXm4tZvzLhVc13HiexB0Z2A1DgTOyjRJsqv94ckKDwecR5BmI3f6ZEG4XtFg2plN04x/Tdkd6TKNg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.238) 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=qHJHjC+FfSeZNQb7rbvPb+FUG9FaFa0Tr4DU3M6PouI=; b=Ge2zwDsfoyCfeHac/EfVHORMsIppL46faW8caTbjmdQ2MuP6Rp1mRzRon/kVvIvrYk6osCnAvWd1I3bKusdAmjBL6bvsGuy7LObTqj8yzEVyszI+Fg4PDOK9yQ+ngU0uW0cKLLNa8duC3DMbVphcEccsPonuwsFaWUn6D1mFesmFWwxDRFTalKeXJGpQ4m29JDB7YVq1t6pD2NA6pjM9Ot9RwD+3E+GUbQI2AAslzV147+jvcYJ4fXamcq4E2HHSZzXfJ+L5xaCT7SMpjDWsiJkBOmiBTTT5qFhTeM9WwNeo7641DVPcYUorg55kVuKCtIz+MIIRCTxJcl6mo9C95w== Received: from BN9PR03CA0777.namprd03.prod.outlook.com (2603:10b6:408:13a::32) by CH2PR12MB4907.namprd12.prod.outlook.com (2603:10b6:610:68::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.13; Tue, 7 Jun 2022 11:19:20 +0000 Received: from BN8NAM11FT065.eop-nam11.prod.protection.outlook.com (2603:10b6:408:13a:cafe::5) by BN9PR03CA0777.outlook.office365.com (2603:10b6:408:13a::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.13 via Frontend Transport; Tue, 7 Jun 2022 11:19:20 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.238) 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 12.22.5.238 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.238; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (12.22.5.238) by BN8NAM11FT065.mail.protection.outlook.com (10.13.177.63) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.5314.12 via Frontend Transport; Tue, 7 Jun 2022 11:19:19 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL105.nvidia.com (10.27.9.14) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Tue, 7 Jun 2022 11:19:19 +0000 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.22; Tue, 7 Jun 2022 04:19:17 -0700 From: Sean Zhang To: CC: Subject: [v2 0/3] Add support for modifying ECN in IPv4/IPv6 header Date: Tue, 7 Jun 2022 14:18:57 +0300 Message-ID: <20220607111900.23432-1-xiazhang@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220402064000.8772-1-xiazhang@nvidia.com> References: <20220402064000.8772-1-xiazhang@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.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-Office365-Filtering-Correlation-Id: 123bc75d-4a5f-46a2-97fc-08da48779132 X-MS-TrafficTypeDiagnostic: CH2PR12MB4907:EE_ X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Rj4vuKErOxwnxJlXbBuRGFwTDdRVy15MVsKecaJn+yov7ZD2m9hq+7PwphLewR5XpgXiLgcMNx6LgG7NA8sHT9n2cr7xSFyZBfq/KWSwW+8uhaPks6yGBJFlsE6YrzQOW5WyKloHffzOe0BzIOwYINiTYGCuFjchDWao6ZkyMKBM8zHHhafLTtczDnhntOBPKazPd9OgdJGaoU7SibT4+XVGwg4snkbORVibwKhBgh9vNexJyM5f0Po76qpAk+EIEdYTr6e7pPXZcMHu28oKr0PKy5J0g/02nkPazjC88aIEIF9Yj+hDQnz8201sPpWrEGfPJtZH73hntVJOQ8yqnlRJ4skNvyq8nLQYoeN3yWCrtJHkdGfz6cODagvQgnp3dJqZ+jjldM6rlErnGNbuGB3zxoiJGyHyTH+zYRmvxs1j/OdiwLry/XXOpAzzxnGbCpKENdN6d84l2+vTf3Mug12mCdt85wKjmAfiNwgchyn90r1op/c/7EztydbJGzf94ektDQLLUKbHuVdn0GbPJPOASCOXa3KaoICLfX+Sb32sOdzEgKezuHXC9dHYhOxIe6Xh6ndswBsQzjNFPs6sUOG/bYxTxqpZaijwUJaDAouZmm6lnzk48qHgHYnVQ+X3FkxrwlnaezWlQ9wk3/Jyslbf67TobJPo+70P6hHBIhUOjAX8AaQtUPB0rMzx7pyyhjkGxqC9oGfNuZMoEGhyxA== X-Forefront-Antispam-Report: CIP:12.22.5.238; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:InfoNoRecords; CAT:NONE; SFS:(13230001)(4636009)(46966006)(40470700004)(36840700001)(336012)(8936002)(70206006)(6916009)(2906002)(36756003)(426003)(47076005)(316002)(5660300002)(26005)(55016003)(81166007)(356005)(6286002)(8676002)(4326008)(7696005)(1076003)(83380400001)(82310400005)(36860700001)(70586007)(2616005)(6666004)(40460700003)(4744005)(16526019)(508600001)(186003)(86362001)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jun 2022 11:19:19.8947 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 123bc75d-4a5f-46a2-97fc-08da48779132 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[12.22.5.238]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT065.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB4907 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 This patch set adds support for modifying ECN fields in IPv4/IPv6 header, and also adds support for modify_filed action in meter. --- v2 --- rebase and add missing doc --- Sean Zhang (3): common/mlx5: add modify ECN capability check net/mlx5: add support to modify ECN field net/mlx5: add modify field support in meter doc/guides/nics/mlx5.rst | 5 ++- doc/guides/rel_notes/release_22_07.rst | 1 + drivers/common/mlx5/mlx5_devx_cmds.c | 3 ++ drivers/common/mlx5/mlx5_devx_cmds.h | 1 + drivers/common/mlx5/mlx5_prm.h | 62 +++++++++++++++++++++++++++++- drivers/net/mlx5/mlx5_flow.c | 5 ++- drivers/net/mlx5/mlx5_flow.h | 2 + drivers/net/mlx5/mlx5_flow_dv.c | 69 ++++++++++++++++++++++++++++++++-- drivers/net/mlx5/mlx5_flow_meter.c | 2 +- 9 files changed, 141 insertions(+), 9 deletions(-) -- 1.8.3.1