]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/srpt: Add support for immediate data
authorBart Van Assche <bvanassche@acm.org>
Mon, 17 Dec 2018 21:20:46 +0000 (13:20 -0800)
committerDoug Ledford <dledford@redhat.com>
Wed, 19 Dec 2018 20:07:26 +0000 (15:07 -0500)
commit454fc7871cf158f5ac70298620a13fe3b8dfeff6
tree6c8c0acf5a9394c8c81225d9146bb50bec4cef2f
parent1e8c01f3bbebcb75c0b5abbd7748643fef953f94
RDMA/srpt: Add support for immediate data

Modify allocation of the non-SRQ receive queues such that immediate
data is aligned on a 512 byte boundary. That alignment is necessary
to pass the immediate data without copying to the block layer. When
receiving an SRP_CMD with immediate data, postpone the ib_post_recv()
call until target_execute_cmd() has finished. See also
srpt_release_cmd().

Cc: Sergey Gorenko <sergeygo@mellanox.com>
Cc: Max Gurtovoy <maxg@mellanox.com>
Cc: Laurence Oberman <loberman@redhat.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/srpt/ib_srpt.c
drivers/infiniband/ulp/srpt/ib_srpt.h