|
@@ -299,13 +299,14 @@ int mlx4_SET_PORT(struct mlx4_dev *dev, u8 port)
|
|
struct mlx4_cmd_mailbox *mailbox;
|
|
struct mlx4_cmd_mailbox *mailbox;
|
|
int err;
|
|
int err;
|
|
|
|
|
|
|
|
+ if (dev->caps.port_type[port] == MLX4_PORT_TYPE_ETH)
|
|
|
|
+ return 0;
|
|
|
|
+
|
|
mailbox = mlx4_alloc_cmd_mailbox(dev);
|
|
mailbox = mlx4_alloc_cmd_mailbox(dev);
|
|
if (IS_ERR(mailbox))
|
|
if (IS_ERR(mailbox))
|
|
return PTR_ERR(mailbox);
|
|
return PTR_ERR(mailbox);
|
|
|
|
|
|
memset(mailbox->buf, 0, 256);
|
|
memset(mailbox->buf, 0, 256);
|
|
- if (dev->caps.port_type[port] == MLX4_PORT_TYPE_ETH)
|
|
|
|
- return 0;
|
|
|
|
|
|
|
|
((__be32 *) mailbox->buf)[1] = dev->caps.ib_port_def_cap[port];
|
|
((__be32 *) mailbox->buf)[1] = dev->caps.ib_port_def_cap[port];
|
|
err = mlx4_cmd(dev, mailbox->dma, port, 0, MLX4_CMD_SET_PORT,
|
|
err = mlx4_cmd(dev, mailbox->dma, port, 0, MLX4_CMD_SET_PORT,
|