]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb9b712e7594224d5adecc238febc3e8b28d9482e
treefb77f6babbe4014502160bd8ddae2993ca6a1180
parentc8291fc5260de8d4b53ce41faa86ec0653d2f1ea
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