diff options
author | Bart Van Assche <bvanassche@acm.org> | 2019-09-30 16:16:59 -0700 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-10-04 15:35:06 -0300 |
commit | bf583470617e31c836afc4fa2039dabc43350533 (patch) | |
tree | de3b2a9f63c44221a19e26fb6c36dc6620761827 /drivers/infiniband/ulp/srp/ib_srp.h | |
parent | 14673778d06ee551a55695947548b52d503e7273 (diff) | |
download | kernel_replicant_linux-bf583470617e31c836afc4fa2039dabc43350533.tar.gz kernel_replicant_linux-bf583470617e31c836afc4fa2039dabc43350533.tar.bz2 kernel_replicant_linux-bf583470617e31c836afc4fa2039dabc43350533.zip |
RDMA/srp: Honor the max_send_sge device attribute
Instead of assuming that max_send_sge >= 3, restrict the number of scatter
gather elements to what is supported by the RDMA adapter.
Link: https://lore.kernel.org/r/20190930231707.48259-8-bvanassche@acm.org
Cc: Honggang LI <honli@redhat.com>
Cc: Laurence Oberman <loberman@redhat.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/ulp/srp/ib_srp.h')
-rw-r--r-- | drivers/infiniband/ulp/srp/ib_srp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/ulp/srp/ib_srp.h b/drivers/infiniband/ulp/srp/ib_srp.h index af9922550ae1..f38fbb00d0e8 100644 --- a/drivers/infiniband/ulp/srp/ib_srp.h +++ b/drivers/infiniband/ulp/srp/ib_srp.h @@ -161,6 +161,7 @@ struct srp_rdma_ch { }; uint32_t max_it_iu_len; uint32_t max_ti_iu_len; + u8 max_imm_sge; bool use_imm_data; /* Everything above this point is used in the hot path of |