IB/mlx5: Support MLX5_CMD_OP_QUERY_LAG as a DEVX general command
authorMark Zhang <markz@mellanox.com>
Wed, 31 Jul 2019 11:40:14 +0000 (14:40 +0300)
committerLeon Romanovsky <leonro@mellanox.com>
Sun, 4 Aug 2019 08:24:48 +0000 (11:24 +0300)
The "MLX5_CMD_OP_QUERY_LAG" is one of the DEVX general commands, add it.

Fixes: 8aa8c95ce4cc ("IB/mlx5: Add support for DEVX general command")
Signed-off-by: Mark Zhang <markz@mellanox.com>
Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
drivers/infiniband/hw/mlx5/devx.c

index ec4370f9938127f94d70533f2ebf8cc9f44b48a2..48968b4d561dde8a011e3fb76c8f451ba3fe7b28 100644 (file)
@@ -922,6 +922,7 @@ static bool devx_is_general_cmd(void *in, struct mlx5_ib_dev *dev)
        case MLX5_CMD_OP_QUERY_CONG_STATUS:
        case MLX5_CMD_OP_QUERY_CONG_PARAMS:
        case MLX5_CMD_OP_QUERY_CONG_STATISTICS:
+       case MLX5_CMD_OP_QUERY_LAG:
                return true;
        default:
                return false;