common/mlx5: rename GENEVE TLV option object
authorDekel Peled <dekelp@nvidia.com>
Tue, 4 May 2021 17:54:47 +0000 (20:54 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 4 May 2021 20:41:34 +0000 (22:41 +0200)
Rename MLX5_OBJ_TYPE_GENEVE_TLV_OPT as
MLX5_GENERAL_OBJ_TYPE_GENEVE_TLV_OPT, to align with other general
objects names.

Signed-off-by: Dekel Peled <dekelp@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/common/mlx5/mlx5_devx_cmds.c
drivers/common/mlx5/mlx5_prm.h

index 6c6f439..642a109 100644 (file)
@@ -2263,7 +2263,7 @@ mlx5_devx_cmd_create_geneve_tlv_option(void *ctx,
        MLX5_SET(general_obj_in_cmd_hdr, hdr, opcode,
                        MLX5_CMD_OP_CREATE_GENERAL_OBJECT);
        MLX5_SET(general_obj_in_cmd_hdr, hdr, obj_type,
-                       MLX5_OBJ_TYPE_GENEVE_TLV_OPT);
+                MLX5_GENERAL_OBJ_TYPE_GENEVE_TLV_OPT);
        MLX5_SET(geneve_tlv_option, opt, option_class,
                        rte_be_to_cpu_16(class));
        MLX5_SET(geneve_tlv_option, opt, option_type, type);
index fedb127..a5a9c17 100644 (file)
@@ -1108,7 +1108,7 @@ enum {
 #define MLX5_GENERAL_OBJ_TYPES_CAP_FLOW_METER_ASO \
                        (1ULL << MLX5_GENERAL_OBJ_TYPE_FLOW_METER_ASO)
 #define MLX5_GENERAL_OBJ_TYPES_CAP_GENEVE_TLV_OPT \
-                       (1ULL << MLX5_OBJ_TYPE_GENEVE_TLV_OPT)
+                       (1ULL << MLX5_GENERAL_OBJ_TYPE_GENEVE_TLV_OPT)
 
 enum {
        MLX5_HCA_CAP_OPMOD_GET_MAX   = 0,
@@ -2395,7 +2395,7 @@ struct mlx5_ifc_create_cq_in_bits {
 };
 
 enum {
-       MLX5_OBJ_TYPE_GENEVE_TLV_OPT = 0x000b,
+       MLX5_GENERAL_OBJ_TYPE_GENEVE_TLV_OPT = 0x000b,
        MLX5_GENERAL_OBJ_TYPE_VIRTQ = 0x000d,
        MLX5_GENERAL_OBJ_TYPE_VIRTIO_Q_COUNTERS = 0x001c,
        MLX5_GENERAL_OBJ_TYPE_FLEX_PARSE_GRAPH = 0x0022,