[v3,1/1] node: remove MAX macro from all nodes
Checks
Commit Message
Removed MAX macro from all graph nodes to extend
edges to nodes at ease
Signed-off-by: Rakesh Kudurumalla <rkudurumalla@marvell.com>
Acked-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
---
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(-)
Comments
28/09/2023 11:14, Rakesh Kudurumalla:
> Removed MAX macro from all graph nodes to extend
> edges to nodes at ease
>
> Signed-off-by: Rakesh Kudurumalla <rkudurumalla@marvell.com>
> Acked-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
Applied, thanks.
@@ -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",
@@ -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",
@@ -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. */
};
@@ -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. */
};
/**