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 AB22541CA8; Wed, 15 Feb 2023 18:43:02 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8D17A410F2; Wed, 15 Feb 2023 18:43:02 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id C80A8410DD for ; Wed, 15 Feb 2023 18:43:01 +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 31FFbJwE006716; Wed, 15 Feb 2023 09:42:59 -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=HPpCicdj4STmfDiRwlcVZKtmn2J5wGWskLdb5oEXS5A=; b=X6ZIxeuokBk3SV705FRvic4P2CBIlrY7VzGYw/z/nvQWq0X+JsdUkhIVsTxY7f/xi8dx CIcvHp0KTVdDui4KShsJy/Bj9Cc87oQ4oM/ZLryLG09s/Z1NqmoIbtfZSYF2TFmuR6Pp m1tjTkGu7HuhR8mF6PoaGMbZae727m5FiYReO2Ls8uEKTaegSzaotvFtZcw3XAaZk/fc kWpEp/ssfYXMK1/kQAfjk2CzDjugNA/LThvTpctABxrb+8SpS+ttLm5meNziYqMLasS9 f13cvGcZq3f9qrebSN5T1lqMXmpF4m0laN7HgtaUncrqn08uuIGsn3K60eZ7abVReHIO KQ== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3nrumgjn8w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 15 Feb 2023 09:42:58 -0800 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 15 Feb 2023 09:42:56 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.42 via Frontend Transport; Wed, 15 Feb 2023 09:42:56 -0800 Received: from localhost.localdomain (unknown [10.28.36.154]) by maili.marvell.com (Postfix) with ESMTP id 4944A3F7040; Wed, 15 Feb 2023 09:42:54 -0800 (PST) From: Rakesh Kudurumalla To: Ferruh Yigit , Ori Kam , "Thomas Monjalon" , Andrew Rybchenko CC: , , , "Rakesh Kudurumalla" Subject: [PATCH v10 1/3] ethdev: skip congestion management configuration Date: Wed, 15 Feb 2023 23:12:49 +0530 Message-ID: <20230215174251.1698253-1-rkudurumalla@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230215062532.1169860-1-rkudurumalla@marvell.com> References: <20230215062532.1169860-1-rkudurumalla@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: lppp9ElEAjEce0wjfippjAF1mD_JLmc0 X-Proofpoint-ORIG-GUID: lppp9ElEAjEce0wjfippjAF1mD_JLmc0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22 definitions=2023-02-15_08,2023-02-15_01,2023-02-09_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 Introduce new flow action to skip congestion management configuration 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 Signed-off-by: Rakesh Kudurumalla Acked-by: Ori Kam Acked-by: Jerin Jacob --- v10: Rebased on top of dpdk-next-net doc/guides/nics/features/default.ini | 1 + doc/guides/prog_guide/rte_flow.rst | 22 ++++++++++++++++++++++ doc/guides/rel_notes/release_23_03.rst | 6 ++++++ lib/ethdev/rte_flow.h | 11 +++++++++++ 4 files changed, 40 insertions(+) diff --git a/doc/guides/nics/features/default.ini b/doc/guides/nics/features/default.ini index 976a020985..49e41b8002 100644 --- a/doc/guides/nics/features/default.ini +++ b/doc/guides/nics/features/default.ini @@ -200,6 +200,7 @@ set_tag = set_tp_dst = set_tp_src = set_ttl = +skip_cman = vf = vxlan_decap = vxlan_encap = diff --git a/doc/guides/prog_guide/rte_flow.rst b/doc/guides/prog_guide/rte_flow.rst index 161c5dce53..76045386ba 100644 --- a/doc/guides/prog_guide/rte_flow.rst +++ b/doc/guides/prog_guide/rte_flow.rst @@ -1832,6 +1832,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/doc/guides/rel_notes/release_23_03.rst b/doc/guides/rel_notes/release_23_03.rst index ad23355e54..286cffab95 100644 --- a/doc/guides/rel_notes/release_23_03.rst +++ b/doc/guides/rel_notes/release_23_03.rst @@ -97,6 +97,12 @@ New Features ``rte_flow_configure``. * Added ``host_port_id`` to ``rte_flow_port_attr`` structure. +* **Added support to skip congestion management configuration.** + + * Added a new action ``RTE_FLOW_ACTION_TYPE_SKIP_CMAN`` to skip + congestion management processing based on per flow or packet color + identified by rte_flow meter object + * **Updated AMD axgbe driver.** * Added multi-process support. diff --git a/lib/ethdev/rte_flow.h b/lib/ethdev/rte_flow.h index 6a51442b8c..069b2210f1 100644 --- a/lib/ethdev/rte_flow.h +++ b/lib/ethdev/rte_flow.h @@ -2820,6 +2820,17 @@ enum rte_flow_action_type { * No associated configuration structure. */ RTE_FLOW_ACTION_TYPE_SEND_TO_KERNEL, + + /** + * 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. + * + */ + RTE_FLOW_ACTION_TYPE_SKIP_CMAN, }; /** -- 2.25.1