diff mbox

[for-next,5/5] mlx5_core: Update mlx5_command_str with DC commands

Message ID 1415289159-4376-6-git-send-email-eli@mellanox.com (mailing list archive)
State Rejected
Headers show

Commit Message

Eli Cohen Nov. 6, 2014, 3:52 p.m. UTC
Add support for DC commands and make a few other minor fixes.

Signed-off-by: Eli Cohen <eli@mellanox.com>
---
 drivers/net/ethernet/mellanox/mlx5/core/cmd.c | 21 ++++++++++++++++++---
 1 file changed, 18 insertions(+), 3 deletions(-)
diff mbox

Patch

diff --git a/drivers/net/ethernet/mellanox/mlx5/core/cmd.c b/drivers/net/ethernet/mellanox/mlx5/core/cmd.c
index 368c6c5ea014..37786ea6ad6c 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/cmd.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/cmd.c
@@ -289,10 +289,10 @@  const char *mlx5_command_str(int command)
 		return "TEARDOWN_HCA";
 
 	case MLX5_CMD_OP_ENABLE_HCA:
-		return "MLX5_CMD_OP_ENABLE_HCA";
+		return "ENABLE_HCA";
 
 	case MLX5_CMD_OP_DISABLE_HCA:
-		return "MLX5_CMD_OP_DISABLE_HCA";
+		return "DISABLE_HCA";
 
 	case MLX5_CMD_OP_QUERY_PAGES:
 		return "QUERY_PAGES";
@@ -390,6 +390,21 @@  const char *mlx5_command_str(int command)
 	case MLX5_CMD_OP_RESIZE_SRQ:
 		return "RESIZE_SRQ";
 
+	case MLX5_CMD_OP_CREATE_DCT:
+		return "CREATE_DCT";
+
+	case MLX5_CMD_OP_DESTROY_DCT:
+		return "DESTROY_DCT";
+
+	case MLX5_CMD_OP_DRAIN_DCT:
+		return "DRAIN_DCT";
+
+	case MLX5_CMD_OP_QUERY_DCT:
+		return "QUERY_DCT";
+
+	case MLX5_CMD_OP_ARM_DCT_FOR_KEY_VIOLATION:
+		return "ARM_DCT";
+
 	case MLX5_CMD_OP_ALLOC_PD:
 		return "ALLOC_PD";
 
@@ -415,7 +430,7 @@  const char *mlx5_command_str(int command)
 		return "DEALLOC_XRCD";
 
 	case MLX5_CMD_OP_ACCESS_REG:
-		return "MLX5_CMD_OP_ACCESS_REG";
+		return "ACCESS_REG";
 
 	default: return "unknown command opcode";
 	}