]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit59f920dbe2b5009e483a28fec8df8269e4ff89a2
tree6f347bec595f0a665f14c13fe54d7375d288068d
parent8e4f9ac644349a4915fd18348b4bb296fcdc8330
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