summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_prm.h
diff options
context:
space:
mode:
authorOri Kam <orika@mellanox.com>2018-09-24 23:17:47 +0000
committerFerruh Yigit <ferruh.yigit@intel.com>2018-10-11 18:53:49 +0200
commitfc2c498ccb942c6a9de3f0a555250e0b09707c80 (patch)
tree58a1e0e0468585638cf37d84d94ffbaa6324ac90 /drivers/net/mlx5/mlx5_prm.h
parent865a0c15672c7f2d0c9e2b4f4d52546ebfcb759e (diff)
downloaddpdk-fc2c498ccb942c6a9de3f0a555250e0b09707c80.zip
dpdk-fc2c498ccb942c6a9de3f0a555250e0b09707c80.tar.gz
dpdk-fc2c498ccb942c6a9de3f0a555250e0b09707c80.tar.xz
net/mlx5: add Direct Verbs translate items
This commit handles the translation of the requested flow into Direct Verbs API. The Direct Verbs introduce the matcher object which acts as shared mask for all flows that are using the same mask. So in this commit we translate the item and get in return a matcher and the value that should be matched. Signed-off-by: Ori Kam <orika@mellanox.com> Acked-by: Yongseok Koh <yskoh@mellanox.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_prm.h')
-rw-r--r--drivers/net/mlx5/mlx5_prm.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/mlx5/mlx5_prm.h b/drivers/net/mlx5/mlx5_prm.h
index 5b34d0d..69296a0 100644
--- a/drivers/net/mlx5/mlx5_prm.h
+++ b/drivers/net/mlx5/mlx5_prm.h
@@ -493,6 +493,13 @@ struct mlx5_ifc_fte_match_param_bits {
u8 reserved_at_800[0x800];
};
+enum {
+ MLX5_MATCH_CRITERIA_ENABLE_OUTER_BIT,
+ MLX5_MATCH_CRITERIA_ENABLE_MISC_BIT,
+ MLX5_MATCH_CRITERIA_ENABLE_INNER_BIT,
+ MLX5_MATCH_CRITERIA_ENABLE_MISC2_BIT
+};
+
/* CQE format mask. */
#define MLX5E_CQE_FORMAT_MASK 0xc