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");