From patchwork Thu Feb 9 07:24:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rakesh Kudurumalla X-Patchwork-Id: 123513 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 AF31441C49; Thu, 9 Feb 2023 08:24:25 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9344E40DDA; Thu, 9 Feb 2023 08:24:25 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 4ED574067B for ; Thu, 9 Feb 2023 08:24:23 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3195Wm0Y011582; Wed, 8 Feb 2023 23:24:21 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=U0r0ExBUC5mANbyd5jaCc+c62UYIh8yTvkQsKTtbQFk=; b=YZXMxhDIVyAtGhFIwmAEyzWv32ShXxBZw6qQHcp/5QZkbUTZ6mlcOuChQk+cBkbnqGqV oCQX3RpWp0HG9l6HLjOGQ//4uQlxJkVT/ohINeaoXRd2UzeNlYfErUtaLLclCKrahMOG y0kK5d73Jb7DtBQl4Mdz4IqyaqCaiZpmgqfVMzWo2JGKco/aFJjf6V7JvwPsXy+njdG7 iEWytSKOuKQib+sWw65XSB7gFkkXpaa6AN52qxA6p1f5lz13aFyKe0v46nwf2UYvAI/c FR6/rjH4cif/t8f3v3AoYIDLI4FkRxAwhHt3unw1gK+xEJKVEpmRV2WERYl6gFhsv50Z Wg== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3nm65m155r-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 08 Feb 2023 23:24:21 -0800 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 8 Feb 2023 23:24:19 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.42 via Frontend Transport; Wed, 8 Feb 2023 23:24:19 -0800 Received: from localhost.localdomain (unknown [10.28.36.154]) by maili.marvell.com (Postfix) with ESMTP id 8066B5B692C; Wed, 8 Feb 2023 23:24:15 -0800 (PST) From: Rakesh Kudurumalla To: Ori Kam , Thomas Monjalon , "Ferruh Yigit" , Andrew Rybchenko CC: , , , "Rakesh Kudurumalla" Subject: [PATCH v3 1/3] lib: skip congestion management configuration Date: Thu, 9 Feb 2023 12:54:00 +0530 Message-ID: <20230209072402.957747-1-rkudurumalla@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230125073231.4007078-1-rkudurumalla@marvell.com> References: <20230125073231.4007078-1-rkudurumalla@marvell.com> MIME-Version: 1.0 X-Proofpoint-GUID: webBfeMpAFeRfZ2rF8vBoEDG4kndJ6WY X-Proofpoint-ORIG-GUID: webBfeMpAFeRfZ2rF8vBoEDG4kndJ6WY X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-02-09_04,2023-02-08_02,2022-06-22_01 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 Skip the congestion management configuration applied using rte_eth_cman_config_set() API on the given ethdev Rx queue. Signed-off-by: Rakesh Kudurumalla --- v3: Updated comments and programmers guide regrading new action doc/guides/prog_guide/rte_flow.rst | 22 ++++++++++++++++++++++ lib/ethdev/rte_flow.h | 20 ++++++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/doc/guides/prog_guide/rte_flow.rst b/doc/guides/prog_guide/rte_flow.rst index 3e6242803d..0737b877da 100644 --- a/doc/guides/prog_guide/rte_flow.rst +++ b/doc/guides/prog_guide/rte_flow.rst @@ -1840,6 +1840,28 @@ Drop packets. | no properties | +---------------+ + +Action: ``SKIP_CMAN`` +^^^^^^^^^^^^^^^^^^^ + +Skip congestion management on received packets + +- Using ``rte_eth_cman_config_set()``, application can configure ethdev Rx + queue's congestion mechanism.Once applied packets congestion configuration + is bypassed on that particular ethdev Rx queue for all packets directed + to that receive queue + +.. _table_rte_flow_action_skip_cman: + +.. table:: SKIP_CMAN + + +---------------+ + | Field | + +===============+ + | no properties | + +---------------+ + + Action: ``COUNT`` ^^^^^^^^^^^^^^^^^ diff --git a/lib/ethdev/rte_flow.h b/lib/ethdev/rte_flow.h index b60987db4b..5ae00e2245 100644 --- a/lib/ethdev/rte_flow.h +++ b/lib/ethdev/rte_flow.h @@ -2203,6 +2203,26 @@ enum rte_flow_action_type { */ RTE_FLOW_ACTION_TYPE_DROP, + /** + * Skip congestion management configuration + * + * ethdev: introduce flow action to skip congestion + * management configuration + * + * Using rte_eth_cman_config_set() API the application + * can configure ethdev Rx queue's congestion mechanism. + * Introducing RTE_FLOW_ACTION_TYPE_SKIP_CMAN flow action to skip the + * congestion configuration applied to the given ethdev Rx queue. + * + * This feature helps to skip the congestion management processing + * based on per flow or the packet color identified by + * rte_flow meter object. For example, If one Rx queue configured as + * RED congestion and application wants tobypass the RED congestion + * processing for all GREEN color packet can be expressed though + * RTE_FLOW_ACTION_TYPE_SKIP_CMAN flow action + */ + RTE_FLOW_ACTION_TYPE_SKIP_CMAN, + /** * Enables counters for this flow rule. *