IB/mlx4: Fix IBoE link state
authorEli Cohen <eli@dev.mellanox.co.il>
Thu, 11 Nov 2010 21:05:58 +0000 (21:05 +0000)
committerRoland Dreier <rolandd@cisco.com>
Thu, 2 Dec 2010 00:11:29 +0000 (16:11 -0800)
commit21d606090ec1aacc998276f5af34c43a88f01218
treebdf6ab404ad18c7deccedf14268e24ca1e0b3941
parent328266c561153a0c19084088d5dacd40632dc7ae
IB/mlx4: Fix IBoE link state

Use netif_running() and netif_carrier_ok() to report link state,
exactly as is done to report Ethernet link state in sysfs.

Signed-off-by: Eli Cohen <eli@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mlx4/main.c