Linux/linux fab4f97drivers/infiniband/sw/siw siw_qp_tx.c

RDMA/siw: Fix SGL mapping issues

All user level and most in-kernel applications submit WQEs
where the SG list entries are all of a single type.
iSER in particular, however, will send us WQEs with mixed SG
types: sge[0] = kernel buffer, sge[1] = PBL region.
Check and set is_kva on each SG entry individually instead of
assuming the first SGE type carries through to the last.
This fixes iSER over siw.

Fixes: b9be6f18cf9e ("rdma/siw: transmit path")
Reported-by: Krishnamraju Eraparaju <krishna2 at chelsio.com>
Tested-by: Krishnamraju Eraparaju <krishna2 at chelsio.com>
Signed-off-by: Bernard Metzler <bmt at zurich.ibm.com>
Link: https://lore.kernel.org/r/20190822150741.21871-1-bmt@zurich.ibm.com
Signed-off-by: Doug Ledford <dledford at redhat.com>
DeltaFile
+15-22drivers/infiniband/sw/siw/siw_qp_tx.c
+15-221 files

UnifiedSplitRaw