mlx4: capability for link sensing
authorYevgeny Petrilin <yevgenyp@mellanox.co.il>
Mon, 19 Dec 2011 04:00:26 +0000 (04:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Dec 2011 19:57:06 +0000 (14:57 -0500)
commit58a60168d12c4e5be21c29420a3de4a41ef3470f
tree407a7f5c7ef86a4346577ce1860bf686d40d4b93
parent9f6e20cee6253c4ca5faacba8dbd09ebe70132ed
mlx4: capability for link sensing

For ConnectX3 devices, we allow link sensing only if FW explicitly
reported it supports the feature.
For older versions (ConnectX1 and 2), if the card supports both link layer types
(Ethenet and Infiniband), link sensing is supported.

Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/main.c
include/linux/mlx4/device.h