Skip to content

Commit

Permalink
icmp: fix uninitialized variable
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Jarry <[email protected]>
  • Loading branch information
rjarry committed Apr 17, 2024
1 parent 148dbb2 commit e3f3a8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions modules/ip4/datapath/icmp_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ icmp_input_process(struct rte_graph *graph, struct rte_node *node, void **objs,
next = UNSUPPORTED;
goto next;
}
next = OUTPUT;
next:
rte_node_enqueue_x1(graph, node, next, mbuf);
}
Expand Down
4 changes: 2 additions & 2 deletions modules/ip4/datapath/icmp_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ icmp_output_process(struct rte_graph *graph, struct rte_node *node, void **objs,
ip->hdr_checksum = rte_ipv4_cksum(ip);

ip_output_mbuf_data(mbuf)->nh = NULL;

rte_node_enqueue_x1(graph, node, OUTPUT, mbuf);
}

rte_node_enqueue(graph, node, OUTPUT, objs, nb_objs);

return nb_objs;
}

Expand Down

0 comments on commit e3f3a8c

Please sign in to comment.