]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit804a9f05530022d621c077cac72c4791aeaec2a6
tree407a7f5c7ef86a4346577ce1860bf686d40d4b93
parenta71d794890e6b58577ba75c28a0d87bf3f44b0b9
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