diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-09 19:42:26 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-09 19:42:26 -0400 |
commit | 0534c8cb5c8a8a954751fa01eef7831a475a9ec5 (patch) | |
tree | 1ba3037634378966a78a35bbdec66b384fbff20d /drivers/net/mlx4 | |
parent | 54f93b74cf8c575bb89f9bf32a40a39b83ace1e9 (diff) | |
parent | 07306c0b98a9a0399bff1b91229b4c3b55912189 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband:
RDMA/nes: Add support for new SFP+ PHY
RDMA/nes: Add wide_ppm_offset parm for switch compatibility
RDMA/nes: Fix SFP+ PHY initialization
RDMA/nes: Fix nes_nic_cm_xmit() error handling
RDMA/nes: Fix error handling issues
RDMA/nes: Fix incorrect casts on 32-bit architectures
IPoIB: Document newish features
RDMA/cma: Create cm id even when IB port is down
RDMA/cma: Use rate from IPoIB broadcast when joining IPoIB multicast groups
IPoIB: Avoid free_netdev() BUG when destroying a child interface
mlx4_core: Don't leak mailbox for SET_PORT on Ethernet ports
RDMA/cxgb3: Release dependent resources only when endpoint memory is freed.
RDMA/cxgb3: Handle EEH events
IB/mlx4: Use pgprot_writecombine() for BlueFlame pages
Diffstat (limited to 'drivers/net/mlx4')
-rw-r--r-- | drivers/net/mlx4/port.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/mlx4/port.c b/drivers/net/mlx4/port.c index 7cce3342ef8c..606aa58afdea 100644 --- a/drivers/net/mlx4/port.c +++ b/drivers/net/mlx4/port.c | |||
@@ -299,13 +299,14 @@ int mlx4_SET_PORT(struct mlx4_dev *dev, u8 port) | |||
299 | struct mlx4_cmd_mailbox *mailbox; | 299 | struct mlx4_cmd_mailbox *mailbox; |
300 | int err; | 300 | int err; |
301 | 301 | ||
302 | if (dev->caps.port_type[port] == MLX4_PORT_TYPE_ETH) | ||
303 | return 0; | ||
304 | |||
302 | mailbox = mlx4_alloc_cmd_mailbox(dev); | 305 | mailbox = mlx4_alloc_cmd_mailbox(dev); |
303 | if (IS_ERR(mailbox)) | 306 | if (IS_ERR(mailbox)) |
304 | return PTR_ERR(mailbox); | 307 | return PTR_ERR(mailbox); |
305 | 308 | ||
306 | memset(mailbox->buf, 0, 256); | 309 | memset(mailbox->buf, 0, 256); |
307 | if (dev->caps.port_type[port] == MLX4_PORT_TYPE_ETH) | ||
308 | return 0; | ||
309 | 310 | ||
310 | ((__be32 *) mailbox->buf)[1] = dev->caps.ib_port_def_cap[port]; | 311 | ((__be32 *) mailbox->buf)[1] = dev->caps.ib_port_def_cap[port]; |
311 | err = mlx4_cmd(dev, mailbox->dma, port, 0, MLX4_CMD_SET_PORT, | 312 | err = mlx4_cmd(dev, mailbox->dma, port, 0, MLX4_CMD_SET_PORT, |