linux_dsm_epyc7002/drivers/infiniband/ulp
Honggang Li b2e872f451 RDMA/srp: Calculate max_it_iu_size if remote max_it_iu length available
The default maximum immediate size is too big for old srp clients, which
do not support immediate data.

According to the SRP and SRP-2 specifications, the IOControllerProfile
attributes for SRP target ports contains the maximum initiator to target
iu length.

The maximum initiator to target iu length can be obtained by sending MAD
packets to query subnet manager port and SRP target ports. We should
calculate the max_it_iu_size instead of the default value, when remote
maximum initiator to target iu length available.

Link: https://lore.kernel.org/r/20190927174352.7800-2-honli@redhat.com
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Honggang Li <honli@redhat.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2019-10-08 15:17:32 -03:00
..
ipoib net: Use skb_frag_off accessors 2019-07-30 14:21:32 -07:00
iser IB/iser: remove redundant macro definitions 2019-10-01 11:27:13 -03:00
isert Linux 5.2-rc6 2019-06-28 21:18:23 -03:00
opa_vnic treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
srp RDMA/srp: Calculate max_it_iu_size if remote max_it_iu length available 2019-10-08 15:17:32 -03:00
srpt RDMA/srpt: Postpone HCA removal until after configfs directory removal 2019-10-04 15:35:07 -03:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00