• Bart Van Assche's avatar
    RDMA/srpt: Add support for immediate data · 5dabcd04
    Bart Van Assche authored
    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: default avatarBart Van Assche <bvanassche@acm.org>
    Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
    5dabcd04
ib_srpt.h 14.6 KB