Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 142946
b: refs/heads/master
c: 352b09e
h: refs/heads/master
v: v3
  • Loading branch information
Roland Dreier committed Mar 31, 2009
1 parent b2ee355 commit a6ecbd6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e1d60ec6699f19b760df8261e922ae236ea7bb31
refs/heads/master: 352b09edd7fa8145bfc9e5db0cc0fed971b69440
5 changes: 3 additions & 2 deletions trunk/drivers/net/mlx4/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,13 +299,14 @@ int mlx4_SET_PORT(struct mlx4_dev *dev, u8 port)
struct mlx4_cmd_mailbox *mailbox;
int err;

if (dev->caps.port_type[port] == MLX4_PORT_TYPE_ETH)
return 0;

mailbox = mlx4_alloc_cmd_mailbox(dev);
if (IS_ERR(mailbox))
return PTR_ERR(mailbox);

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];
err = mlx4_cmd(dev, mailbox->dma, port, 0, MLX4_CMD_SET_PORT,
Expand Down

0 comments on commit a6ecbd6

Please sign in to comment.