summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_prm.h
diff options
context:
space:
mode:
authorNĂ©lio Laranjeiro <nelio.laranjeiro@6wind.com>2017-03-01 13:49:45 +0100
committerFerruh Yigit <ferruh.yigit@intel.com>2017-04-04 15:52:51 +0200
commitb268a3ee3c46833bd692aded0789b35e8d2d1a14 (patch)
tree13b9bf6829eb8ba6ade34c297b2535b6de6ecc48 /drivers/net/mlx5/mlx5_prm.h
parent63e5f0e7518f79c9b69ee4f4085f7cc5c727080a (diff)
downloaddpdk-b268a3ee3c46833bd692aded0789b35e8d2d1a14.zip
dpdk-b268a3ee3c46833bd692aded0789b35e8d2d1a14.tar.gz
dpdk-b268a3ee3c46833bd692aded0789b35e8d2d1a14.tar.xz
net/mlx5: support flag flow action
This action is not terminal in this PMD, it must be followed by a queue action. Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_prm.h')
-rw-r--r--drivers/net/mlx5/mlx5_prm.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/mlx5/mlx5_prm.h b/drivers/net/mlx5/mlx5_prm.h
index 755b5d7..3318668 100644
--- a/drivers/net/mlx5/mlx5_prm.h
+++ b/drivers/net/mlx5/mlx5_prm.h
@@ -227,9 +227,11 @@ mlx5_flow_mark_set(uint32_t val)
/*
* Add one to the user value to differentiate un-marked flows from
- * marked flows.
+ * marked flows, if the ID is equal to MLX5_FLOW_MARK_DEFAULT it
+ * remains untouched.
*/
- ++val;
+ if (val != MLX5_FLOW_MARK_DEFAULT)
+ ++val;
#if RTE_BYTE_ORDER == RTE_LITTLE_ENDIAN
/*
* Mark is 24 bits (minus reserved values) but is stored on a 32 bit
@@ -241,7 +243,6 @@ mlx5_flow_mark_set(uint32_t val)
#else
ret = val;
#endif
- assert(ret <= MLX5_FLOW_MARK_MAX);
return ret;
}