commit | bf583470617e31c836afc4fa2039dabc43350533 | [log] [tgz] |
---|---|---|
author | Bart Van Assche <bvanassche@acm.org> | Mon Sep 30 16:16:59 2019 -0700 |
committer | Jason Gunthorpe <jgg@mellanox.com> | Fri Oct 04 15:35:06 2019 -0300 |
tree | de3b2a9f63c44221a19e26fb6c36dc6620761827 | |
parent | 14673778d06ee551a55695947548b52d503e7273 [diff] |
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>