diff options
author | Ido Shamay <idos@mellanox.com> | 2015-04-02 15:31:19 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-04-02 22:25:03 +0200 |
commit | a130b59057320192b4b00ed0ba4bc8a38f66f289 (patch) | |
tree | c2617fd4f1849e95744fac88cb9eea900cf2590d /drivers/net/ethernet/mellanox/mlx4/cmd.c | |
parent | net/mlx4: Set enhanced QoS support by default when ETS supported (diff) | |
download | linux-a130b59057320192b4b00ed0ba4bc8a38f66f289.tar.xz linux-a130b59057320192b4b00ed0ba4bc8a38f66f289.zip |
net/mlx4: Add SET_PORT opcode modifiers enumeration
The calls to SET_PORT used hard-code numbers, when supplying command's
opcode modifiers, fix that to use well defined constants.
Signed-off-by: Ido Shamay <idos@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/cmd.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/cmd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/cmd.c b/drivers/net/ethernet/mellanox/mlx4/cmd.c index bc6e4c9b6bb5..06993ea9e6ba 100644 --- a/drivers/net/ethernet/mellanox/mlx4/cmd.c +++ b/drivers/net/ethernet/mellanox/mlx4/cmd.c @@ -726,7 +726,8 @@ static int mlx4_cmd_wait(struct mlx4_dev *dev, u64 in_param, u64 *out_param, * specific command/input_mod/opcode_mod/fw-status to be debug. */ if (op == MLX4_CMD_SET_PORT && in_modifier == 1 && - op_modifier == 0 && context->fw_status == CMD_STAT_BAD_SIZE) + op_modifier == MLX4_SET_PORT_IB_OPCODE && + context->fw_status == CMD_STAT_BAD_SIZE) mlx4_dbg(dev, "command 0x%x failed: fw status = 0x%x\n", op, context->fw_status); else |