mlx4_core: Add link type autosensing
authorYevgeny Petrilin <yevgenyp@mellanox.co.il>
Thu, 19 Mar 2009 02:45:11 +0000 (19:45 -0700)
committerRoland Dreier <rolandd@cisco.com>
Thu, 19 Mar 2009 02:45:11 +0000 (19:45 -0700)
commit27bf91d6a0d5a9c7224e8687754249bba67dd4cf
tree55c253fa4438ea29d73f072a88dff5fb74e2ca4e
parent793730bfb6711d6d14629e63845c25a3c14d205e
mlx4_core: Add link type autosensing

When a port's link is down (except to driver restart) and the port is
configured for auto sensing, we try to sense port link type (Ethernet
or InfiniBand) in order to determine how to initialize the port.  If
the port type needs to be changed, all mlx4 for the device interfaces
are unregistered and then registered again with the new port
types.  Sensing is done with intervals of 3 seconds.

Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/net/mlx4/Makefile
drivers/net/mlx4/catas.c
drivers/net/mlx4/eq.c
drivers/net/mlx4/main.c
drivers/net/mlx4/mlx4.h
drivers/net/mlx4/sense.c [new file with mode: 0644]
include/linux/mlx4/cmd.h
include/linux/mlx4/device.h