app/flow-perf: fix actions mask
authorWisam Jaddo <wisamm@mellanox.com>
Sun, 30 Aug 2020 11:15:32 +0000 (11:15 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Sep 2020 16:55:10 +0000 (18:55 +0200)
Actions have it's own macro which is FLOW_ACTION_MASK

Fixes: bf3688f1e816 ("app/flow-perf: add insertion rate calculation")
Cc: stable@dpdk.org
Signed-off-by: Wisam Jaddo <wisamm@mellanox.com>
Acked-by: Alexander Kozyrev <akozyrev@nvidia.com>
app/test-flow-perf/actions_gen.c

index 864d0c9..cb9316f 100644 (file)
@@ -219,39 +219,39 @@ fill_actions(struct rte_flow_action *actions, uint64_t flow_actions,
                        );
        } flows_actions[] = {
                {
-                       .mask = FLOW_ITEM_MASK(RTE_FLOW_ACTION_TYPE_MARK),
+                       .mask = FLOW_ACTION_MASK(RTE_FLOW_ACTION_TYPE_MARK),
                        .funct = add_mark,
                },
                {
-                       .mask = FLOW_ITEM_MASK(RTE_FLOW_ACTION_TYPE_COUNT),
+                       .mask = FLOW_ACTION_MASK(RTE_FLOW_ACTION_TYPE_COUNT),
                        .funct = add_count,
                },
                {
-                       .mask = FLOW_ITEM_MASK(RTE_FLOW_ACTION_TYPE_SET_META),
+                       .mask = FLOW_ACTION_MASK(RTE_FLOW_ACTION_TYPE_SET_META),
                        .funct = add_set_meta,
                },
                {
-                       .mask = FLOW_ITEM_MASK(RTE_FLOW_ACTION_TYPE_SET_TAG),
+                       .mask = FLOW_ACTION_MASK(RTE_FLOW_ACTION_TYPE_SET_TAG),
                        .funct = add_set_tag,
                },
                {
-                       .mask = FLOW_ITEM_MASK(RTE_FLOW_ACTION_TYPE_QUEUE),
+                       .mask = FLOW_ACTION_MASK(RTE_FLOW_ACTION_TYPE_QUEUE),
                        .funct = add_queue,
                },
                {
-                       .mask = FLOW_ITEM_MASK(RTE_FLOW_ACTION_TYPE_RSS),
+                       .mask = FLOW_ACTION_MASK(RTE_FLOW_ACTION_TYPE_RSS),
                        .funct = add_rss,
                },
                {
-                       .mask = FLOW_ITEM_MASK(RTE_FLOW_ACTION_TYPE_JUMP),
+                       .mask = FLOW_ACTION_MASK(RTE_FLOW_ACTION_TYPE_JUMP),
                        .funct = add_jump,
                },
                {
-                       .mask = FLOW_ITEM_MASK(RTE_FLOW_ACTION_TYPE_PORT_ID),
+                       .mask = FLOW_ACTION_MASK(RTE_FLOW_ACTION_TYPE_PORT_ID),
                        .funct = add_port_id
                },
                {
-                       .mask = FLOW_ITEM_MASK(RTE_FLOW_ACTION_TYPE_DROP),
+                       .mask = FLOW_ACTION_MASK(RTE_FLOW_ACTION_TYPE_DROP),
                        .funct = add_drop,
                },
                {