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 9500EA034C; Thu, 22 Dec 2022 02:39:18 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3DC5C40A7F; Thu, 22 Dec 2022 02:39:18 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 4206140698 for ; Thu, 22 Dec 2022 02:39:16 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2BM1UjKH018330; Wed, 21 Dec 2022 17:39:11 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=Ft0MVHpXJ+A/794uVpwLE905uPs7NmjqPChpCIYlU7c=; b=Z/cVL8OLOJNqgYlAP0pNooYAhfrRxNrH4ex4rGKq1G14ROBJtU4uvz+JpJDrK++mtfYQ IHDTd/G+81QkAPfToioo6W4l+iXDi4hF9xyjP7c28PipcK9dWIHi8A4vmlJRKcfDdcCA 7rQOdQMZ/3H6ZE8FvBB/NX4OvkVRyMVzZKnJD1t+vxwiZ3mzegjYCHh/GO2WeElRjWMP +HGMbKCGubCuWKrxVfcMtOURpgBz0mjNa7eY6yuURuzKFY0DxvGtoMoKlLpJhI1j8v+I sQpK6uU3OPmpGg2PVJr1j4hKfDb5RM/lISNhkaNY9JP5h8YDRZjjQWkS0aLZAwLQ+nmE SQ== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3mm79c1vv9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 21 Dec 2022 17:39:11 -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, 21 Dec 2022 17:39:10 -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, 21 Dec 2022 17:39:10 -0800 Received: from localhost.localdomain (unknown [10.28.36.154]) by maili.marvell.com (Postfix) with ESMTP id D97C63F705D; Wed, 21 Dec 2022 17:39:07 -0800 (PST) From: Rakesh Kudurumalla To: Ori Kam , Thomas Monjalon , "Ferruh Yigit" , Andrew Rybchenko CC: , , Rakesh Kudurumalla Subject: [PATCH 1/3] lib: dpdk spec to skip red for ingress policer Date: Thu, 22 Dec 2022 07:09:02 +0530 Message-ID: <20221222013904.692922-1-rkudurumalla@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: Kis9in6kOxFna-J8oUV8b5u4oQGL_Act X-Proofpoint-GUID: Kis9in6kOxFna-J8oUV8b5u4oQGL_Act X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-12-21_14,2022-12-21_01,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 Dropping of packets based on RED can be skipped with meter action, when RED is configured using rte_eth_cman_config_set() Signed-off-by: Rakesh Kudurumalla --- lib/ethdev/rte_flow.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/ethdev/rte_flow.h b/lib/ethdev/rte_flow.h index b60987db4b..d72374a0b8 100644 --- a/lib/ethdev/rte_flow.h +++ b/lib/ethdev/rte_flow.h @@ -2203,6 +2203,16 @@ enum rte_flow_action_type { */ RTE_FLOW_ACTION_TYPE_DROP, + /** + * Skip packet drops base on RED + * + * Dropping of packets is based on RED when RED is configured + * uing rte_eth_cman_config_set(). RED drop can be skipped + * with this action + * + */ + RTE_FLOW_ACTION_TYPE_SKIP_RED, + /** * Enables counters for this flow rule. * -- 2.25.1