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 A20A7A0501; Sat, 2 Apr 2022 09:12:12 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 781894067E; Sat, 2 Apr 2022 09:12:12 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2064.outbound.protection.outlook.com [40.107.237.64]) by mails.dpdk.org (Postfix) with ESMTP id 4D7D040143 for ; Sat, 2 Apr 2022 09:12:11 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Adg+l/obtpDDTDEFADLliutqYyYY9D3/9FKm9dRcGtQMCHZTIRok3UGr7jkSoXeiLYWl8z2brDxQGsXqZvkCNX2PGjOCHpmyvcklyR/YDFfyiAmoclOb+18hAAD1omglC8G7andRc69RkeRYXO36jFN6UXDe1EAn/dkdqDG6+aB1fgt28AXoHtQEPDvD6ZF/8ZIL9bEpuo+1ZvgG0vCxYphvd6kf2UGQ/N5HYwT5BSh/fnbPOOdhdaNT4Sv2K5zqYQE7Y/TlvFskV0aZOtslAkT8fPIQEq2DLQwpLkxgoZQkfin06ooJghm2YnGLjY8HlG5jLRlUscT4HPKFcHYWZw== 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=uyjBzpeT08aiRJ75o/dp2fc5gQBuYivmzLK67BJvBBg=; b=gqp11jgZrsFuh74v4CWOZH1C1OiTdsrkWdOc6b1cIC3OsZVC6rqi76ccCyERAZi/2iLNAsn/OFnPWntVlbSc3G6YPz4K5GZz3KOcENL2AYnRZ7xDlytrkTJgeL2Wu2AsccHTsqezwOWSknwnbI1D8kHf52LbFLlgBrooCAxgLhihzdoU4npvueI1y0QFobH8NiL+PH/WmZPSFAxGECcZkMa4bHe2wagWS8S4Tf2pYmFQUnt0giCWhTzzEEftRjZOlK1QAiIacEfw5mAucOJ6cuKT6bnz9fPhcMATF6yKhnL9AYsFfwRXzjBGpamlddkYvU58fYljnceDsSFTVXmNKg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.236) 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=uyjBzpeT08aiRJ75o/dp2fc5gQBuYivmzLK67BJvBBg=; b=M3vY3wPXP3oUXO+W+OzBCOfgZBlQEOhQohppNxiGoleUCXRu4xjcE0Vbsz8czEt+PP9zk7upRxlUUZLm14LzYmO/QTeETD69dRbkra06mDvCVa6lwvIe/TR/ABZuN/jrm55QeRjsYpsokiZ+WAIaLQWD3Y9XjgCva5uwm79SHUhkAupml0xn3ZACn4xZs61s/FpsSE08LOxhRrheDLYTEkjlHWBgD3ja0s6ZJ4LsQxaM/BipBPDxMfmxOMAQ+tbFuy8NbeiOxTau3NZyJVpQjh6AsXD27svOeRujHl4p99IMUHdZvMRjKxaJxLombM+y+aA8vJEYtcP4TSH/+LoUtg== Received: from BN6PR22CA0035.namprd22.prod.outlook.com (2603:10b6:404:37::21) by BYAPR12MB2598.namprd12.prod.outlook.com (2603:10b6:a03:6a::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5123.30; Sat, 2 Apr 2022 07:12:09 +0000 Received: from BN8NAM11FT057.eop-nam11.prod.protection.outlook.com (2603:10b6:404:37:cafe::c1) by BN6PR22CA0035.outlook.office365.com (2603:10b6:404:37::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5123.26 via Frontend Transport; Sat, 2 Apr 2022 07:12:08 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.236) 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.236 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.236; helo=mail.nvidia.com; Received: from mail.nvidia.com (12.22.5.236) by BN8NAM11FT057.mail.protection.outlook.com (10.13.177.49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.5123.19 via Frontend Transport; Sat, 2 Apr 2022 07:12:08 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL109.nvidia.com (10.27.9.19) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Sat, 2 Apr 2022 07:12:07 +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; Sat, 2 Apr 2022 00:12:06 -0700 From: Sean Zhang To: CC: Subject: [v1 0/4] Add support for modifying ECN in IPv4/IPv6 header Date: Sat, 2 Apr 2022 10:11:46 +0300 Message-ID: <20220402071150.9392-1-xiazhang@nvidia.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.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-Office365-Filtering-Correlation-Id: e773f5f9-d472-4ad8-08f3-08da147819c1 X-MS-TrafficTypeDiagnostic: BYAPR12MB2598:EE_ 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: Sv3Fj6/mH6Y2pbY3N5gk5uFwAP/mjYMDajXjHWWGcaLutpWxdSmYJSw4NtWVbYpa4L/o1PEdPa+QloE8V+9FMXu8uGX3/3G1KNlTGZgUl8KuW6mhk9ALEAHxwhOa0jQWZeeGxAdpNeCQqvsTF/dLNfe2WOJPFdrgrfxU9sGwHqpbF7fLcH7+e8LUQ9SnYEHbtAAbeLWgbIoJ2Yivg7PWE2GcMeu2YGZG8m9ik9dktudpbF9D9LtNtchJpm5GkZr6aoyT3diiN81h4btVFzdJSTLe0sZXguZrf+qmbxB2V8OOegVJLCjyLlu3G3NbASixc+iqUGCZUVL0xAIPNX9olKrsAOF9HM/F/P5vDGgfAkBdbXomIoTNBR7d3qjoXE6RAObKGuulXtRbSl5QDYbfyUO1J4S3+w5CDxpfg8nJbvi+C1YSYDE70c9knPZ9zwyL3mCIcm6BSZma0TpdB0Ib4soHmklI7hCBpQgtI41MQqz2ap5AGau1/RgsBqPpOE1eddQq6tNyGC5He0Wrco9dP4EjQK3jBNMlDtu12t8OFSf3IAeRuUDpodl7DEdE+itnLLJ9LV3OVeFslYyGK6Sndt8fvljvo8gIqv9I3eIs8CLkEn6iybunmHOK42tnRJDo+n/Wp5/6hXiVblmJNfU4o7j/lw+85UjukQvNYdDDZo5xg0qxJHNU+qBG7Ziq5T/hkdaqhjI6qdBsQBOkKAFqyVxwTAu25NjQtqvMat/XSFA= X-Forefront-Antispam-Report: CIP:12.22.5.236; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:mail.nvidia.com; PTR:InfoNoRecords; CAT:NONE; SFS:(13230001)(4636009)(46966006)(36840700001)(40470700004)(36860700001)(426003)(336012)(6286002)(1076003)(55016003)(6666004)(8936002)(86362001)(5660300002)(4744005)(47076005)(508600001)(82310400004)(16526019)(356005)(2906002)(36756003)(81166007)(7696005)(186003)(83380400001)(40460700003)(109986005)(316002)(8676002)(4326008)(26005)(2616005)(70586007)(70206006)(266003)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Apr 2022 07:12:08.5340 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e773f5f9-d472-4ad8-08f3-08da147819c1 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.236]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT057.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR12MB2598 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. Jiawei Wang (1): ethdev: add IPv4/IPv6 ECN header rewrite action 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 app/test-pmd/cmdline_flow.c | 3 +- doc/guides/nics/mlx5.rst | 4 +- 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 +- lib/ethdev/rte_flow.h | 2 + 10 files changed, 143 insertions(+), 10 deletions(-) -- 2.31.1