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 03DAE42EB8; Wed, 19 Jul 2023 14:30:24 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7DC5B40DFD; Wed, 19 Jul 2023 14:30:24 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 9D07C40A80 for ; Wed, 19 Jul 2023 14:30:23 +0200 (CEST) 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 36J9jlan012950 for ; Wed, 19 Jul 2023 05:30:22 -0700 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=ZIcrmzUZuN6W82Up8l1KiXIhhIy8AIVc58ZPgS1wsOA=; b=Z7o7c8LBQ2puZTW/aV1AHmX25/d2Bots5MbSN/hWy70aIz25pbKqorVgOVgwbMKISWe3 ESoLE6bpLFsvs9jPx1RnlEJYAr7cGtMd6bm8dzr8dstUJpr6W6RuHWGEW2KqxEGwVOXq Ni1hXe/WjzGTHlB85vkfL6pTReAObl4PxIIbe0BdWde+ur45qrNmxK+RSybyVuIMlRIo I1MIDx51vSy6GrJk3XY6n50bDeul8XYTO337Y7lSf81l504OQ385t1YtLH5qSfW1X8Nm p4RrVqMR7xQk8RoadieNnwIsNJKMSvUBIK3ZtmXh40JTVo8RgfbthrTkFQ9FjKNzgE1H lQ== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3rwyc6jn46-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Wed, 19 Jul 2023 05:30:22 -0700 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.48; Wed, 19 Jul 2023 05:30:20 -0700 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.48 via Frontend Transport; Wed, 19 Jul 2023 05:30:20 -0700 Received: from localhost.localdomain (unknown [10.28.36.154]) by maili.marvell.com (Postfix) with ESMTP id A35723F70C4; Wed, 19 Jul 2023 05:30:16 -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: Wed, 19 Jul 2023 18:00:13 +0530 Message-ID: <20230719123013.600659-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-GUID: juKeaVAw7jkNBKSYRpc1DAPaU51qpuw6 X-Proofpoint-ORIG-GUID: juKeaVAw7jkNBKSYRpc1DAPaU51qpuw6 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-07-19_08,2023-07-19_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 without ABI breakage Signed-off-by: Rakesh Kudurumalla --- Depends-on: series-28807 ("add UDP v4 support") 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 d3fc48baf7..21a135a674 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_IP4_LOCAL + 1, .next_nodes = { [RTE_NODE_IP4_LOOKUP_NEXT_IP4_LOCAL] = "ip4_local", [RTE_NODE_IP4_LOOKUP_NEXT_REWRITE] = "ip4_rewrite", 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 405bdd3283..f9e38a4b14 100644 --- a/lib/node/rte_node_ip4_api.h +++ b/lib/node/rte_node_ip4_api.h @@ -32,8 +32,6 @@ enum rte_node_ip4_lookup_next { /**< Packet drop node. */ RTE_NODE_IP4_LOOKUP_NEXT_IP4_LOCAL, /** IP Local 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