[v4,4/4] app/testpmd: adjust cleanup sequence when quitting
Checks
Commit Message
If flex item is referenced in async flow either by
pattern template or action template, currently testpmd
complains "flex item has flow references". Flex items should
be flushed after async flow resources cleanup.
Signed-off-by: Rongwei Liu <rongweil@nvidia.com>
Acked-by: Ori Kam <orika@nvidia.com>
Acked-by: Aman Singh <aman.deep.singh@intel.com>
---
app/test-pmd/testpmd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -3298,10 +3298,10 @@ flush_port_owned_resources(portid_t pi)
{
mcast_addr_pool_destroy(pi);
port_flow_flush(pi);
- port_flex_item_flush(pi);
port_flow_template_table_flush(pi);
port_flow_pattern_template_flush(pi);
port_flow_actions_template_flush(pi);
+ port_flex_item_flush(pi);
port_action_handle_flush(pi);
}