linux/drivers/infiniband/ulp
Bart Van Assche dea262094c IB/srpt: Change default behavior from using SRQ to using RC
Although in the RC mode more resources are needed that mode has three
advantages over SRQ:
- It works with all RDMA adapters, even those that do not support
  SRQ.
- Posting WRs and polling WCs does not trigger lock contention
  because only one thread at a time accesses a WR or WC queue in
  non-SRQ mode.
- The end-to-end flow control mechanism is used.

>From the IB spec:

    C9-150.2.1: For QPs that are not associated with an SRQ, each HCA
    receive queue shall generate end-to-end flow control credits. If
    a QP is associated with an SRQ, the HCA receive queue shall not
    generate end-to-end flow control credits.

Add new configfs attributes that allow to configure which mode to use
(/sys/kernel/config/target/srpt/$GUID/$GUID/attrib/use_srq). Note:
only the attribute for port 1 is relevant on multi-port adapters.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2017-10-18 10:49:54 -04:00
..
ipoib IB/{ipoib, iser}: Consistent print format of vendor error 2017-09-29 11:18:56 -04:00
iser IB/{ipoib, iser}: Consistent print format of vendor error 2017-09-29 11:18:56 -04:00
isert RDMA/isert: Suppress gcc 7 fall-through complaints 2017-10-14 20:47:05 -04:00
opa_vnic IB/opa_vnic: Add routing control information 2017-09-27 11:21:57 -04:00
srp IB/core: Simplify sa_path_set_[sd]lid() calls 2017-10-10 10:49:44 -04:00
srpt IB/srpt: Change default behavior from using SRQ to using RC 2017-10-18 10:49:54 -04:00
Makefile IB/opa-vnic: Virtual Network Interface Controller (VNIC) netdev 2017-04-20 12:01:38 -04:00