net/mlx5: check maximum modify actions number
[dpdk.git] / drivers / net / mlx5 / mlx5_flow.h
index ba43ad7..a8f4e5c 100644 (file)
@@ -348,8 +348,13 @@ struct mlx5_flow_dv_tag_resource {
        uint32_t tag; /**< the tag value. */
 };
 
-/* Number of modification commands. */
-#define MLX5_MODIFY_NUM 8
+/*
+ * Number of modification commands.
+ * If extensive metadata registers are supported
+ * the maximal actions amount is 16 and 8 otherwise.
+ */
+#define MLX5_MODIFY_NUM 16
+#define MLX5_MODIFY_NUM_NO_MREG 8
 
 /* Modify resource structure */
 struct mlx5_flow_dv_modify_hdr_resource {