X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fip_pipeline%2Faction.c;h=d2104aad6e8be51b60bbdea7c6f08061d40331dd;hb=8a41f4deccc39d3a86c3c91667bee993bfd3e39c;hp=a0f97bee7ee474bf200571e9889dfb6421f2d711;hpb=d46fe9448caf68711e805b8fc2d05ef127fde8af;p=dpdk.git diff --git a/examples/ip_pipeline/action.c b/examples/ip_pipeline/action.c index a0f97bee7e..d2104aad6e 100644 --- a/examples/ip_pipeline/action.c +++ b/examples/ip_pipeline/action.c @@ -344,6 +344,28 @@ table_action_profile_create(const char *name, } } + if (params->action_mask & (1LLU << RTE_TABLE_ACTION_TAG)) { + status = rte_table_action_profile_action_register(ap, + RTE_TABLE_ACTION_TAG, + NULL); + + if (status) { + rte_table_action_profile_free(ap); + return NULL; + } + } + + if (params->action_mask & (1LLU << RTE_TABLE_ACTION_DECAP)) { + status = rte_table_action_profile_action_register(ap, + RTE_TABLE_ACTION_DECAP, + NULL); + + if (status) { + rte_table_action_profile_free(ap); + return NULL; + } + } + status = rte_table_action_profile_freeze(ap); if (status) { rte_table_action_profile_free(ap);