]> 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)
commita025ffae43c72d8806f771df5161868c4918b283
tree6f347bec595f0a665f14c13fe54d7375d288068d
parentf2fd1ce667538ee237b86e08387331efe4d1358a
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