linux-sg2042/include/linux/mlx4
Jack Morgenstein 9a5aa622dd mlx4_core: Save/restore default port IB capability mask
Commit 7ff93f8b ("mlx4_core: Multiple port type support") introduced
support for different port types.  As part of that support, SET_PORT
is invoked to set the port type during driver startup.  However, as a
side-effect, for IB ports the invocation of this command also sets the
port's capability mask to zero (losing the default value set by FW).

To fix this, get the default ib port capabilities (via a MAD_IFC Port
Info query) during driver startup, and save them for use in the
mlx4_SET_PORT command when setting the port-type to Infiniband.

This patch fixes problems with subnet manager (SM) failover such as
<https://bugs.openfabrics.org/show_bug.cgi?id=1183>, which occurred
because the IsTrapSupported bit in the capability mask was zeroed.

Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
2008-11-28 21:29:46 -08:00
..
cmd.h mlx4_core: Ethernet MAC/VLAN management 2008-10-22 11:44:46 -07:00
cq.h mlx4_core: Add ethernet fields to CQE struct 2008-08-06 20:14:06 -07:00
device.h mlx4_core: Save/restore default port IB capability mask 2008-11-28 21:29:46 -08:00
doorbell.h mlx4_core: Kill mlx4_write64_raw() 2007-10-14 20:17:39 -07:00
driver.h mlx4_core: Fix confusion between mlx4_event and mlx4_dev_event enums 2008-04-16 21:01:08 -07:00
qp.h mlx4_core: Add VLAN tag field to WQE control segment struct 2008-07-25 10:30:06 -07:00
srq.h IB/mlx4: Add a driver Mellanox ConnectX InfiniBand adapters 2007-05-08 18:00:38 -07:00