linux/drivers/infiniband/hw
Jack Morgenstein fd10ed8e6f IB/mlx4: Fix possible vl/sl field mismatch in LRH header in QP1 packets
In MLX qp packets, the LRH (built by the driver) has both a VL field
and an SL field. When building a QP1 packet, the VL field should
reflect the SLtoVL mapping and not arbitrarily contain zero (as is
done now). This bug causes credit problems in IB switches at
high rates of QP1 packets.

The fix is to cache the SL to VL mapping in the driver, and look up
the VL mapped to the SL provided in the send request when sending
QP1 packets.

For FW versions which support generating a port_management_config_change
event with subtype sl-to-vl-table-change, the driver uses that event
to update its sl-to-vl mapping cache.  Otherwise, the driver snoops
incoming SMP mads to update the cache.

There remains the case where the FW is running in secure-host mode
(so no QP0 packets are delivered to the driver), and the FW does not
generate the sl2vl mapping change event. To support this case, the
driver updates (via querying the FW) its sl2vl mapping cache when
running in secure-host mode when it receives either a Port Up event
or a client-reregister event (where the port is still up, but there
may have been an opensm failover).
OpenSM modifies the sl2vl mapping before Port Up and Client-reregister
events occur, so if there is a mapping change the driver's cache will
be properly updated.

Fixes: 225c7b1fee ("IB/mlx4: Add a driver Mellanox ConnectX InfiniBand adapters")
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2016-10-07 16:54:38 -04:00
..
cxgb3 IB/cxgb3: Move user vendor structures 2016-10-07 16:54:35 -04:00
cxgb4 IB/cxgb4: Move user vendor structures 2016-10-07 16:54:35 -04:00
hfi1 IB/{core,hw}: Add constant for node_desc 2016-10-07 16:54:34 -04:00
hns IB/hns: Add support of ACPI to the Hisilicon RoCE driver 2016-08-25 10:05:10 -04:00
i40iw i40iw_cm: Remove deprecated create_singlethread_workqueue 2016-10-07 16:54:28 -04:00
mlx4 IB/mlx4: Fix possible vl/sl field mismatch in LRH header in QP1 packets 2016-10-07 16:54:38 -04:00
mlx5 IB/mlx5: Move and decouple user vendor structures 2016-10-07 16:54:34 -04:00
mthca IB/mthca: Move user vendor structures 2016-10-07 16:54:37 -04:00
nes IB/nes: Move user vendor structures 2016-10-07 16:54:37 -04:00
ocrdma IB/ocrdma: Move user vendor structures 2016-10-07 16:54:36 -04:00
qib IB/{core,hw}: Add constant for node_desc 2016-10-07 16:54:34 -04:00
usnic IB/usnic: Support device FW version string 2016-06-23 12:08:34 -04:00
Makefile IB/hns: Kconfig and Makefile for RoCE module 2016-08-22 14:02:33 -04:00