diff options
author | Jack Morgenstein <jackm@dev.mellanox.co.il> | 2008-11-28 21:29:46 -0800 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2008-11-28 21:29:46 -0800 |
commit | 9a5aa622dd4cd22b5e0fe83e4a9c0c768d4e2dea (patch) | |
tree | 95e975a4959a890bd1050645b04488272aa4643c /include | |
parent | 4ffaf869c7780bbdfc11291e5fd4b61dde662b1c (diff) | |
download | linux-9a5aa622dd4cd22b5e0fe83e4a9c0c768d4e2dea.tar.gz linux-9a5aa622dd4cd22b5e0fe83e4a9c0c768d4e2dea.tar.bz2 linux-9a5aa622dd4cd22b5e0fe83e4a9c0c768d4e2dea.zip |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mlx4/device.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h index bd9977b89490..371086fd946f 100644 --- a/include/linux/mlx4/device.h +++ b/include/linux/mlx4/device.h @@ -179,6 +179,7 @@ struct mlx4_caps { int num_ports; int vl_cap[MLX4_MAX_PORTS + 1]; int ib_mtu_cap[MLX4_MAX_PORTS + 1]; + __be32 ib_port_def_cap[MLX4_MAX_PORTS + 1]; u64 def_mac[MLX4_MAX_PORTS + 1]; int eth_mtu_cap[MLX4_MAX_PORTS + 1]; int gid_table_len[MLX4_MAX_PORTS + 1]; |