net/mlx4_core: Fix error message deprecation for ConnectX-2 cards

Commit 1daa4303b4ca ("net/mlx4_core: Deprecate error message at
ConnectX-2 cards startup to debug") did the deprecation only for port 1
of the card. Need to deprecate for port 2 as well.

Fixes: 1daa4303b4ca ("net/mlx4_core: Deprecate error message at ConnectX-2 cards startup to debug")
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Jack Morgenstein and committed by David S. Miller fde913e2 30303813

Changed files
+2 -1
drivers
net
ethernet
mellanox
mlx4
+2 -1
drivers/net/ethernet/mellanox/mlx4/cmd.c
··· 724 724 * on the host, we deprecate the error message for this 725 725 * specific command/input_mod/opcode_mod/fw-status to be debug. 726 726 */ 727 - if (op == MLX4_CMD_SET_PORT && in_modifier == 1 && 727 + if (op == MLX4_CMD_SET_PORT && 728 + (in_modifier == 1 || in_modifier == 2) && 728 729 op_modifier == 0 && context->fw_status == CMD_STAT_BAD_SIZE) 729 730 mlx4_dbg(dev, "command 0x%x failed: fw status = 0x%x\n", 730 731 op, context->fw_status);