]> git.baikalelectronics.ru Git - kernel.git/commit
mlx4_core: Multiple port type support
authorYevgeny Petrilin <yevgenyp@mellanox.co.il>
Wed, 22 Oct 2008 22:38:42 +0000 (15:38 -0700)
committerRoland Dreier <rolandd@cisco.com>
Wed, 22 Oct 2008 22:38:42 +0000 (15:38 -0700)
commitc5d0fde51940a251e19fe9778d060d1219af62ba
tree4b38e1ead8b27a480cc766f6927dccf5b63793ae
parent368029320e5ae39f2e8559bf1ce11f40c3bfd7f4
mlx4_core: Multiple port type support

Multi-protocol adapters support different port types.  Each consumer
of mlx4_core queries for supported port types; in particular mlx4_ib
can no longer assume that all physical ports belong to it.  Port type
is configured through a sysfs interface.  When the type of a port is
changed, all mlx4 interfaces are unregistered, and then registered
again with the new port types.

Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mlx4/mad.c
drivers/infiniband/hw/mlx4/main.c
drivers/infiniband/hw/mlx4/mlx4_ib.h
drivers/net/mlx4/fw.c
drivers/net/mlx4/fw.h
drivers/net/mlx4/main.c
drivers/net/mlx4/mlx4.h
drivers/net/mlx4/port.c
include/linux/mlx4/device.h