RDMA/srp: Handle large SCSI CDBs correctly
authorBart Van Assche <bvanassche@acm.org>
Mon, 17 Dec 2018 21:20:35 +0000 (13:20 -0800)
committerDoug Ledford <dledford@redhat.com>
Wed, 19 Dec 2018 20:07:25 +0000 (15:07 -0500)
commit482fffc43c032ec09dd9ee792a546b36e973dcef
treeb7b7343b360e0dfb07da676692e8da9584d0a812
parente37df2d5b569390e3b80ebed9a73fd5b9dcda010
RDMA/srp: Handle large SCSI CDBs correctly

Reserve additional space for CDBs that contain more than sixteen bytes
and set the add_cdb_len field for such CDBs as required. From the SRP
standard: "The ADDITIONAL CDB LENGTH field contains the length in
dwords of the ADDITIONAL CDB field."

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/srp/ib_srp.c
drivers/infiniband/ulp/srp/ib_srp.h