diff options
author | Eli Cohen <eli@mellanox.com> | 2016-03-11 22:58:41 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-03-21 17:13:14 -0400 |
commit | 1f324bff9ba3db276f074169d5b4af9e9c117ba1 (patch) | |
tree | 1299145f1d918c0e089799831666a6cfab3f0c42 /drivers/net/ethernet/mellanox/mlx5/core/cmd.c | |
parent | 2a4826fe746e01712ca53902ee75c1a1f6c0a4aa (diff) | |
download | op-kernel-dev-1f324bff9ba3db276f074169d5b4af9e9c117ba1.zip op-kernel-dev-1f324bff9ba3db276f074169d5b4af9e9c117ba1.tar.gz |
net/mlx5_core: Implement modify HCA vport command
Implement the modify HCA vport commands used to modify the parameters of
virtual HCA's ports.
Signed-off-by: Eli Cohen <eli@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/cmd.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/cmd.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/cmd.c b/drivers/net/ethernet/mellanox/mlx5/core/cmd.c index 037fc4c..ebb4036 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/cmd.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/cmd.c @@ -407,6 +407,12 @@ static int mlx5_internal_err_ret_value(struct mlx5_core_dev *dev, u16 op, const char *mlx5_command_str(int command) { switch (command) { + case MLX5_CMD_OP_QUERY_HCA_VPORT_CONTEXT: + return "QUERY_HCA_VPORT_CONTEXT"; + + case MLX5_CMD_OP_MODIFY_HCA_VPORT_CONTEXT: + return "MODIFY_HCA_VPORT_CONTEXT"; + case MLX5_CMD_OP_QUERY_HCA_CAP: return "QUERY_HCA_CAP"; |