summaryrefslogtreecommitdiffstats
path: root/drivers/net/mlx4/sense.c
diff options
context:
space:
mode:
authorYevgeny Petrilin <yevgenyp@mellanox.co.il>2011-04-06 23:24:42 +0000
committerDavid S. Miller <davem@davemloft.net>2011-04-07 20:36:12 -0700
commitab6dc30da55d262c54ae12e47e4a2e4372e39fbf (patch)
treefb77f6babbe4014502160bd8ddae2993ca6a1180 /drivers/net/mlx4/sense.c
parent1b86a58f9d7ce4fe2377687f378fbfb53bdc9b6c (diff)
downloadblackbird-op-linux-ab6dc30da55d262c54ae12e47e4a2e4372e39fbf.tar.gz
blackbird-op-linux-ab6dc30da55d262c54ae12e47e4a2e4372e39fbf.zip
mlx4: Sensing link type at device initialization
When bringing the port up, performing a SENSE_PORT command To try and check to which physical link type (IB or Ethernet) the physical port is connected. In case there is no valid link partner, the port will come up as its supported default. Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/mlx4/sense.c')
-rw-r--r--drivers/net/mlx4/sense.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/mlx4/sense.c b/drivers/net/mlx4/sense.c
index 015fbe785c13..e2337a7411d9 100644
--- a/drivers/net/mlx4/sense.c
+++ b/drivers/net/mlx4/sense.c
@@ -38,8 +38,8 @@
#include "mlx4.h"
-static int mlx4_SENSE_PORT(struct mlx4_dev *dev, int port,
- enum mlx4_port_type *type)
+int mlx4_SENSE_PORT(struct mlx4_dev *dev, int port,
+ enum mlx4_port_type *type)
{
u64 out_param;
int err = 0;
OpenPOWER on IntegriCloud