]> asedeno.scripts.mit.edu Git - linux.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)
commit5dabcd0456d7ee17c2c7a17d7c2305444d2b9639
tree6c8c0acf5a9394c8c81225d9146bb50bec4cef2f
parent82305f8235622a97f29ff6e82cc97cab6ac543ea
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