mlx4: Sensing link type at device initialization
authorYevgeny Petrilin <yevgenyp@mellanox.co.il>
Wed, 6 Apr 2011 23:24:42 +0000 (23:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Apr 2011 03:36:12 +0000 (20:36 -0700)
commitab6dc30da55d262c54ae12e47e4a2e4372e39fbf
treefb77f6babbe4014502160bd8ddae2993ca6a1180
parent1b86a58f9d7ce4fe2377687f378fbfb53bdc9b6c
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>
drivers/net/mlx4/main.c
drivers/net/mlx4/mlx4.h
drivers/net/mlx4/sense.c