summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorYongseok Koh <yskoh@mellanox.com>2018-10-23 16:52:15 +0000
committerFerruh Yigit <ferruh.yigit@intel.com>2018-10-26 22:14:06 +0200
commit2096f61b95642b30cd517736c120a41b739da413 (patch)
tree4bb025b32dffd2b19f1b24e0e4cad990b9dd96eb /drivers
parent39bee16117967273d49d61a29a0d57c64408e1fc (diff)
downloaddpdk-2096f61b95642b30cd517736c120a41b739da413.zip
dpdk-2096f61b95642b30cd517736c120a41b739da413.tar.gz
dpdk-2096f61b95642b30cd517736c120a41b739da413.tar.xz
net/mlx5: fix flow mark ID conversion in Direct Verbs
Fixes: d02cb0691299 ("net/mlx5: add Direct Verbs translate actions") Signed-off-by: Yongseok Koh <yskoh@mellanox.com> Acked-by: Ori Kam <orika@mellanox.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/mlx5/mlx5_flow_dv.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c
index 57b01a7..071f31d 100644
--- a/drivers/net/mlx5/mlx5_flow_dv.c
+++ b/drivers/net/mlx5/mlx5_flow_dv.c
@@ -1065,15 +1065,16 @@ flow_dv_create_action(const struct rte_flow_action *action,
case RTE_FLOW_ACTION_TYPE_FLAG:
dev_flow->dv.actions[actions_n].type = MLX5DV_FLOW_ACTION_TAG;
dev_flow->dv.actions[actions_n].tag_value =
- MLX5_FLOW_MARK_DEFAULT;
+ mlx5_flow_mark_set(MLX5_FLOW_MARK_DEFAULT);
actions_n++;
flow->actions |= MLX5_FLOW_ACTION_FLAG;
break;
case RTE_FLOW_ACTION_TYPE_MARK:
dev_flow->dv.actions[actions_n].type = MLX5DV_FLOW_ACTION_TAG;
dev_flow->dv.actions[actions_n].tag_value =
- ((const struct rte_flow_action_mark *)
- (action->conf))->id;
+ mlx5_flow_mark_set
+ (((const struct rte_flow_action_mark *)
+ (action->conf))->id);
flow->actions |= MLX5_FLOW_ACTION_MARK;
actions_n++;
break;