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 443F342FB0; Tue, 1 Aug 2023 10:49:28 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2D07840A7D; Tue, 1 Aug 2023 10:49:26 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id CE077400D5 for ; Tue, 1 Aug 2023 10:49:23 +0200 (CEST) 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 3712hXw9021734 for ; Tue, 1 Aug 2023 01:49:23 -0700 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=xMlC3MZxn9sLVcVp4s4r12/W2fujCQyCnyh44OFGxxk=; b=akMX/XUJzHITlmpjNSIEMmJKi+v+aXs9st8QWvlH2zM99McxITnPT5HFwqrLgvjU9wN2 QL/ynvjpDK2vnddIiunAx6A/tbB31KkkzOxJjYrD9GiMPnPocZ+3JuBnvX6Nhn5wAheZ yST4/dfgmjErM6A9oMTVKS4LRtmhib2hV3oHEHQGy/RtQ1xDEhMNvf9Jg11YL7h80LyH gcranVU9bVTD4WigvcG/Fa47rI2ifMRVK9Zi9ya4Ep18xK3N+WcNfddFC0UwqC7PBZBO 7kUhZ37SrUhiXfQeZXY4VlqwuqqCdtpSE+GDovpUzHJu/VuY6uusKLoL0pmW4/J8+g83 Bg== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3s6du0bjf1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Tue, 01 Aug 2023 01:49:22 -0700 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.48; Tue, 1 Aug 2023 01:49:21 -0700 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.48 via Frontend Transport; Tue, 1 Aug 2023 01:49:21 -0700 Received: from localhost.localdomain (unknown [10.28.36.154]) by maili.marvell.com (Postfix) with ESMTP id 73E733F7088; Tue, 1 Aug 2023 01:49:19 -0700 (PDT) From: Rakesh Kudurumalla To: Nithin Dabilpuram , Pavan Nikhilesh CC: , , Rakesh Kudurumalla Subject: [PATCH 1/1] node: remove MAX macro from all nodes Date: Tue, 1 Aug 2023 14:19:16 +0530 Message-ID: <20230801084916.1542854-1-rkudurumalla@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230719123013.600659-1-rkudurumalla@marvell.com> References: <20230719123013.600659-1-rkudurumalla@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: nbxYwo7Zo8lcisnga_i76v4zP3IzzJj_ X-Proofpoint-ORIG-GUID: nbxYwo7Zo8lcisnga_i76v4zP3IzzJj_ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-01_03,2023-07-31_02,2023-05-22_02 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 Removed MAX macro from all graph nodes to extend edges to nodes at ease Signed-off-by: Rakesh Kudurumalla --- v2: Update changes to TOT and resolve dependecy related issues lib/node/ip4_lookup.c | 2 +- lib/node/ip6_lookup.c | 2 +- lib/node/rte_node_ip4_api.h | 2 -- lib/node/rte_node_ip6_api.h | 2 -- 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/node/ip4_lookup.c b/lib/node/ip4_lookup.c index 8bce03d7db..72fd760512 100644 --- a/lib/node/ip4_lookup.c +++ b/lib/node/ip4_lookup.c @@ -225,7 +225,7 @@ static struct rte_node_register ip4_lookup_node = { .init = ip4_lookup_node_init, - .nb_edges = RTE_NODE_IP4_LOOKUP_NEXT_MAX, + .nb_edges = RTE_NODE_IP4_LOOKUP_NEXT_PKT_DROP + 1, .next_nodes = { [RTE_NODE_IP4_LOOKUP_NEXT_REWRITE] = "ip4_rewrite", [RTE_NODE_IP4_LOOKUP_NEXT_PKT_DROP] = "pkt_drop", diff --git a/lib/node/ip6_lookup.c b/lib/node/ip6_lookup.c index 646e466551..6f56eb5ec5 100644 --- a/lib/node/ip6_lookup.c +++ b/lib/node/ip6_lookup.c @@ -362,7 +362,7 @@ static struct rte_node_register ip6_lookup_node = { .init = ip6_lookup_node_init, - .nb_edges = RTE_NODE_IP6_LOOKUP_NEXT_MAX, + .nb_edges = RTE_NODE_IP6_LOOKUP_NEXT_PKT_DROP + 1, .next_nodes = { [RTE_NODE_IP6_LOOKUP_NEXT_REWRITE] = "ip6_rewrite", [RTE_NODE_IP6_LOOKUP_NEXT_PKT_DROP] = "pkt_drop", diff --git a/lib/node/rte_node_ip4_api.h b/lib/node/rte_node_ip4_api.h index 3397da0ae8..0f997761b6 100644 --- a/lib/node/rte_node_ip4_api.h +++ b/lib/node/rte_node_ip4_api.h @@ -29,8 +29,6 @@ enum rte_node_ip4_lookup_next { RTE_NODE_IP4_LOOKUP_NEXT_REWRITE, /**< Rewrite node. */ RTE_NODE_IP4_LOOKUP_NEXT_PKT_DROP, - /**< Packet drop node. */ - RTE_NODE_IP4_LOOKUP_NEXT_MAX, /**< Number of next nodes of lookup node. */ }; diff --git a/lib/node/rte_node_ip6_api.h b/lib/node/rte_node_ip6_api.h index f3b5a1002a..a538dc2ea7 100644 --- a/lib/node/rte_node_ip6_api.h +++ b/lib/node/rte_node_ip6_api.h @@ -30,8 +30,6 @@ enum rte_node_ip6_lookup_next { /**< Rewrite node. */ RTE_NODE_IP6_LOOKUP_NEXT_PKT_DROP, /**< Packet drop node. */ - RTE_NODE_IP6_LOOKUP_NEXT_MAX, - /**< Number of next nodes of lookup node. */ }; /** -- 2.25.1