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 0D7024265E; Thu, 28 Sep 2023 11:14:30 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 89C3140273; Thu, 28 Sep 2023 11:14:29 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id B2E5640150 for ; Thu, 28 Sep 2023 11:14:27 +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 38S8ieNn019316 for ; Thu, 28 Sep 2023 02:14:26 -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=WN+Unk4BNL6T6NfyaGrMl5h8S8q1me/PNbHE3W61k0k=; b=RINv2hd2l3WHjbveFhfSP5dYs9d9M3msE8L9hGoW8+yyA/TLw8ZGPOlj2LWV+44nICEs Ss0Ts96/7wF3OgoOOHzszoPyvg/CB4QcdtNFfDcXQYdjZ4HzGbM+MG8EkEAbv9Ep+5HU udTxPJhzmKH2c4+xii9xFH4x1q1mNfnZZi/HkDVIdmHgUGNLImRGptp2XpqC4efHkaTf aooKcv28l/HicrSYRltuiy23x4ZB+HSDtSFXA0OMWgR/bwXAv5iE923ePvKqBEWY598Z WB7jp+3qhUNIx59Dcomf1EnqFzYUjX0lRhI+zLq9L/6BJoSbAOKoZDugM8zdoOcXxPLR bw== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3tcu1qt9uc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Thu, 28 Sep 2023 02:14:17 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Thu, 28 Sep 2023 02:14:10 -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; Thu, 28 Sep 2023 02:14:10 -0700 Received: from localhost.localdomain (unknown [10.28.36.154]) by maili.marvell.com (Postfix) with ESMTP id 670175C68EE; Thu, 28 Sep 2023 02:14:09 -0700 (PDT) From: Rakesh Kudurumalla To: Nithin Dabilpuram , Pavan Nikhilesh CC: , , Rakesh Kudurumalla Subject: [PATCH v3 1/1] node: remove MAX macro from all nodes Date: Thu, 28 Sep 2023 14:44:06 +0530 Message-ID: <20230928091406.4111898-1-rkudurumalla@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230801084916.1542854-1-rkudurumalla@marvell.com> References: <20230801084916.1542854-1-rkudurumalla@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: yfldVsVS4HtmXkBq_naHthwP_08MQLPO X-Proofpoint-ORIG-GUID: yfldVsVS4HtmXkBq_naHthwP_08MQLPO X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-09-28_07,2023-09-27_01,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 Acked-by: Nithin Dabilpuram --- v3: Updated acked-by 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