Skip to content

Commit

Permalink
node/ethdev_rx: remove hardcoded node next details
Browse files Browse the repository at this point in the history
For ethdev_rx node, node_next details can be populated
during node cloning time and same gets assigned to
node context structure during node initialization.

Patch removes overriding node_next details in node
init().

Signed-off-by: Vamsi Attunuru <vattunuru@marvell.com>
Signed-off-by: 0-day Robot <robot@bytheb.org>
  • Loading branch information
Vamsi Attunuru authored and ovsrobot committed Jun 2, 2023
1 parent 919550c commit d47d2a0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions lib/node/ethdev_ctrl.c
Expand Up @@ -82,6 +82,7 @@ rte_node_eth_config(struct rte_node_ethdev_config *conf, uint16_t nb_confs,
memset(elem, 0, sizeof(ethdev_rx_node_elem_t));
elem->ctx.port_id = port_id;
elem->ctx.queue_id = j;
elem->ctx.cls_next = ETHDEV_RX_NEXT_PKT_CLS;
elem->nid = id;
elem->next = rx_node_data->head;
rx_node_data->head = elem;
Expand Down
3 changes: 0 additions & 3 deletions lib/node/ethdev_rx.c
Expand Up @@ -194,8 +194,6 @@ ethdev_rx_node_init(const struct rte_graph *graph, struct rte_node *node)

RTE_VERIFY(elem != NULL);

ctx->cls_next = ETHDEV_RX_NEXT_PKT_CLS;

/* Check and setup ptype */
return ethdev_ptype_setup(ctx->port_id, ctx->queue_id);
}
Expand All @@ -215,7 +213,6 @@ static struct rte_node_register ethdev_rx_node_base = {

.nb_edges = ETHDEV_RX_NEXT_MAX,
.next_nodes = {
/* Default pkt classification node */
[ETHDEV_RX_NEXT_PKT_CLS] = "pkt_cls",
[ETHDEV_RX_NEXT_IP4_LOOKUP] = "ip4_lookup",
},
Expand Down

0 comments on commit d47d2a0

Please sign in to comment.