From 75a838756660b04c19086277039571e9d8ce0f9d Mon Sep 17 00:00:00 2001 From: Zhu Hengbo <403975152@qq.com> Date: Mon, 17 Feb 2025 20:25:07 +0800 Subject: [PATCH] example/flow_filtering: fix wrong type assign in calloc() --- examples/flow_filtering/snippets/snippet_match_mpls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/flow_filtering/snippets/snippet_match_mpls.c b/examples/flow_filtering/snippets/snippet_match_mpls.c index 8382ec7041f..77532833fa9 100644 --- a/examples/flow_filtering/snippets/snippet_match_mpls.c +++ b/examples/flow_filtering/snippets/snippet_match_mpls.c @@ -17,7 +17,7 @@ snippet_mpls_create_actions(struct rte_flow_action *actions) /* Create one action that moves the packet to the selected queue. */ struct rte_flow_action_queue *queue; - queue = calloc(1, sizeof(struct rte_flow_item_ipv4)); + queue = calloc(1, sizeof(struct rte_flow_action_queue)); if (queue == NULL) fprintf(stderr, "Failed to allocate memory for queue\n");