summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx4/main.c
diff options
context:
space:
mode:
authorYevgeny Petrilin <yevgenyp@mellanox.co.il>2012-08-03 00:38:38 +0000
committerDavid S. Miller <davem@davemloft.net>2012-08-03 16:49:40 -0700
commit2207b60ffb6545040e2e2620fced13deba7643c2 (patch)
treef96c184614eef140dcc5f3e7149d1e2a39cc4071 /drivers/net/ethernet/mellanox/mlx4/main.c
parentc18520bd1b244fe8e3ac5358137321780a70d6e7 (diff)
downloadblackbird-op-linux-2207b60ffb6545040e2e2620fced13deba7643c2.tar.gz
blackbird-op-linux-2207b60ffb6545040e2e2620fced13deba7643c2.zip
net/mlx4_core: Remove port type restrictions
Port1=Eth, Port2=IB restriction is no longer required. Having RoCE, there will always rdma port initialized over ConnectX physical port, no matter whether the link layer is IB or Ethernet. So we always have dual port IB device. Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/main.c')
-rw-r--r--drivers/net/ethernet/mellanox/mlx4/main.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/main.c b/drivers/net/ethernet/mellanox/mlx4/main.c
index 48d0e90194cb..827b72dfce99 100644
--- a/drivers/net/ethernet/mellanox/mlx4/main.c
+++ b/drivers/net/ethernet/mellanox/mlx4/main.c
@@ -157,9 +157,6 @@ int mlx4_check_port_params(struct mlx4_dev *dev,
"on this HCA, aborting.\n");
return -EINVAL;
}
- if (port_type[i] == MLX4_PORT_TYPE_ETH &&
- port_type[i + 1] == MLX4_PORT_TYPE_IB)
- return -EINVAL;
}
}
OpenPOWER on IntegriCloud