IB/srpt: Introduce helper functions for SRQ allocation and freeing
authorBart Van Assche <bart.vanassche@wdc.com>
Fri, 3 Nov 2017 23:20:53 +0000 (16:20 -0700)
committerDoug Ledford <dledford@redhat.com>
Mon, 13 Nov 2017 20:25:16 +0000 (15:25 -0500)
commitc76d7d64f8067699260421509a7c11ad51761061
tree6f347bec595f0a665f14c13fe54d7375d288068d
parent321e329b9c0b3328e3f6bd4924b9c8c5cbf5c22d
IB/srpt: Introduce helper functions for SRQ allocation and freeing

The only functional change in this patch is in the srpt_add_one()
error path: if allocating the ring buffer for the SRQ fails, fall
back to non-SRQ mode instead of disabling SRP target functionality.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/srpt/ib_srpt.c