From patchwork Wed Oct 11 11:30:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suanming Mou X-Patchwork-Id: 132547 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B4DC342360; Wed, 11 Oct 2023 13:31:34 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3BBC440279; Wed, 11 Oct 2023 13:31:34 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2054.outbound.protection.outlook.com [40.107.94.54]) by mails.dpdk.org (Postfix) with ESMTP id BA18B40266 for ; Wed, 11 Oct 2023 13:31:32 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Z5ypr8wJLBo5baw6BFnEMQPSpMx4GNycofrDGpS9D83PKvc669nxBvUNgrKTkylEPptqTdTfm+2+ityG9m+EvxUm6PiqTAy+yBa9hM0FGjy2kemPPey7YfmF9xO7SOG5+iSOxag4E+awD/14v7uSeVECpnjAX2lz5mf6hMnx5XmfC4CVVs5huAf0ztRmI0R/xgH85Q6D2Htolsa/k2FIZsgfU+1lEiMEI1gV4N5Op2VxJIcWwyePDWlhx7blI7U5QWYrct8MzbKKn016+Ermvirsp3YuqWBNFm9PoLNkcuecKO3wsf00V9cL4EUsjK7Zf/8ZgDmg/qWKYvCW1iUVUw== 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=HKpIxBS5MXVORuRtxM0MdM9ALB0udwWKaGiZJOZlLxc=; b=Mn4MSrtrGqv74AuJ6qFhCsj1NBSoT/BVYfpMDJmPYay8q/0k2UZytdVqT4IElGlnZYEhBH5OoXxA2tJBBW+dq0+qvifxSj43bXdZ5Qb5IYWeGCMHW/j1HDFWn1JWp7tsRJ77atwCva64gJe62aF8xB8LKxUQzjq5TWn2hRxX7qtthbaFkVAnVPaQsKXCq+C0cEg74BTyvM/+gjiTwXGlDcYiB2qR54EbjN+EqIdYFzYyOa6qI97U0waqD82wFRZc/qGwN8GAy5pWFOUQ1LHOZLSaTAwHg5PlfXDjgxNw8Dvpue47wC0uEN8U1OLXWsB6JJHfZMn1YMptH5NdGIHaKw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=amd.com 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=HKpIxBS5MXVORuRtxM0MdM9ALB0udwWKaGiZJOZlLxc=; b=VeV2kSAHSRhClpLxT0ldpGBJISevcu2YFObY8vqoVqgdLWpRBQlxQ4vAiFDvrZOHbflWV8O2eKGPXpXyAMxehMTd4A2t9cWujixcm68g7WuA/6bc9y6KAD6GwkFtXP+hGMuYwUxgropaNm52PF9V4FcUelZ/ZjWyjz7xbyJZCL7ISh1igvY7wffi7IuPBQtiLVwYNoK03t1+Ttnph7wtNtxRPZsefdlovUEEl1m5+5zN8gMGh4RW9PSmG/sW2CvPepHLRfYkmglH0Hpz1+78IS2U/vezyQSJ0oPhgdu7EDVFoBl/syUj1Xg1tRFuMZmRF0t1pIzHAV1ga5lA1zJSKg== Received: from DM5PR07CA0111.namprd07.prod.outlook.com (2603:10b6:4:ae::40) by CY5PR12MB6107.namprd12.prod.outlook.com (2603:10b6:930:28::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.44; Wed, 11 Oct 2023 11:31:31 +0000 Received: from DS1PEPF00017098.namprd05.prod.outlook.com (2603:10b6:4:ae:cafe::5d) by DM5PR07CA0111.outlook.office365.com (2603:10b6:4:ae::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6886.27 via Frontend Transport; Wed, 11 Oct 2023 11:31:30 +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 DS1PEPF00017098.mail.protection.outlook.com (10.167.18.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.22 via Frontend Transport; Wed, 11 Oct 2023 11:31:30 +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; Wed, 11 Oct 2023 04:31:17 -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.41; Wed, 11 Oct 2023 04:31:14 -0700 From: Suanming Mou To: , Aman Singh , "Yuying Zhang" CC: Subject: [PATCH v3 1/2] doc: add modify_field action description Date: Wed, 11 Oct 2023 19:30:55 +0800 Message-ID: <20231011113057.454215-1-suanmingm@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230808083741.8193-1-suanmingm@nvidia.com> References: <20230808083741.8193-1-suanmingm@nvidia.com> MIME-Version: 1.0 X-Originating-IP: [10.126.231.35] 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: DS1PEPF00017098:EE_|CY5PR12MB6107:EE_ X-MS-Office365-Filtering-Correlation-Id: 2295743b-ca13-48b8-4f4c-08dbca4d9dad X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XZolGIWQs8LP7PphzZ/GyVZrt84lDrvyF+frHSoiCYwFCDAqor7hbQoZoEqp1az1WUMs5MQYYbYABmA3EckxE0UZVnGBYUobBQCTJ9JWmAnj5xBO5TZDWwOIuuwNsL4ZYDjsKDpHHCeefPw+R1A17kZhHC9sRMH1yR+e66nKBvCThGwsIP3Dr5phA2pRY7duWTTyawHSYiANqxg7ouqwZpxIftYrkE/aHSHJXH7bnif9VJ6sRSTviToLfmxnJWB1jk1jGyZXMXdTTroY4yj3JSPOUI1YH/CcDZzz1cwxH7f+YLjrS2239dKXaTWQiGuLy2rJPDfuGOpo0qFNvrWOW6Kokht9luUEkcdc1csrOI3Z7RlHMKdaxGJMzCVsqHAOCj6lEdr68wpGzU2nhUdj9MfCE3pzk6v0E/Eo/PwCffKWI3kMfczuzYgTmf5esoa+EBnEEjCuSH3pm+hyvwC0yNhM+xNE/FJyVh1xFWh+Auarcf3K+eV8lEBEEAoRv3hk9RM7f+WTg2s5OJPdjStfHUdIQB0xPuva+i+a1wh9yzP/dTJ/JjjXqsGkMcfNUXX/PVM8riIOb0wyxFzJvKWylpJPqLDC9pHF2I+8ZBFFTEJFo7Bnc5oo3k0S7ZwmMJvgElREpNOhRPWdvhC9AO6qFI/TAQ6YpRMoN5wUp/ccd5qbe0UUNXlaLz0fyldFz7dnTKn/Pv5o7VKPFXfnf2D2BZKsSm1AY7bH8GIzPTSRmt+FJJmrnpmQMSl99g9ATJIZ 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)(376002)(136003)(39860400002)(346002)(396003)(230922051799003)(82310400011)(186009)(64100799003)(1800799009)(451199024)(36840700001)(40470700004)(46966006)(86362001)(47076005)(2906002)(8936002)(5660300002)(8676002)(356005)(478600001)(4326008)(83380400001)(36756003)(7636003)(426003)(26005)(16526019)(6286002)(41300700001)(336012)(316002)(7696005)(70206006)(70586007)(110136005)(40460700003)(55016003)(2616005)(6666004)(36860700001)(40480700001)(1076003)(82740400003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Oct 2023 11:31:30.8168 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2295743b-ca13-48b8-4f4c-08dbca4d9dad 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: DS1PEPF00017098.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR12MB6107 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 commit adds the missing modify_field action description to `testpmd_funcs.rst`. Signed-off-by: Suanming Mou Acked-by: Ferruh Yigit --- v3: add modify_field description. --- doc/guides/testpmd_app_ug/testpmd_funcs.rst | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides/testpmd_app_ug/testpmd_funcs.rst index 67968ecb7f..04c502798a 100644 --- a/doc/guides/testpmd_app_ug/testpmd_funcs.rst +++ b/doc/guides/testpmd_app_ug/testpmd_funcs.rst @@ -4108,6 +4108,27 @@ This section lists supported actions and their attributes, if any. - ``mtr_init_color {value}``: initial color value (green/yellow/red) - ``mtr_state {unsigned}``: meter state (disabled/enabled) +- ``modify_field``: Modify packet field + + - ``op``: modify operation (set/add/sub) + - ``dst_type``: the destination field to be modified, the supported fields as + ``enum rte_flow_field_id`` listed. + - ``dst_level``: destination field level. + - ``dst_tag_index``: destination field tag array. + - ``dst_type_id``: destination field type ID. + - ``dst_class``: destination field class ID. + - ``dst_offset``: destination field bit offset. + - ``src_type``: the modify source field, the supported fields as + ``enum rte_flow_field_id`` listed. + - ``src_level``: source field level. + - ``src_tag_index``: source field tag array. + - ``src_type_id``: source field type ID. + - ``src_class``: source field class ID. + - ``src_offset``: source field bit offset. + - ``src_value``: source immediate value. + - ``src_ptr``: pointer to source immediate value. + - ``width``: number of bits to copy. + Destroying flow rules ~~~~~~~~~~~~~~~~~~~~~