linux/drivers/infiniband/hw
Brian Welty 904bba211a IB/{hfi1, qib}: Fix WC.byte_len calculation for UD_SEND_WITH_IMM
The work completion length for a receiving a UD send with immediate is
short by 4 bytes causing application using this opcode to fail.

The UD receive logic incorrectly subtracts 4 bytes for immediate
value. These bytes are already included in header length and are used to
calculate header/payload split, so the result is these 4 bytes are
subtracted twice, once when the header length subtracted from the overall
length and once again in the UD opcode specific path.

Remove the extra subtraction when handling the opcode.

Fixes: 7724105686 ("IB/hfi1: add driver files")
Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Brian Welty <brian.welty@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2019-01-21 14:20:08 -07:00
..
bnxt_re cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
cxgb3 cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
cxgb4 cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
hfi1 IB/{hfi1, qib}: Fix WC.byte_len calculation for UD_SEND_WITH_IMM 2019-01-21 14:20:08 -07:00
hns cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
i40iw cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
mlx4 IB/mlx4: Fix using wrong function to destroy sqp AHs under SRIOV 2019-01-21 14:20:08 -07:00
mlx5 RDMA/mlx5: Fix check for supported user flags when creating a QP 2019-01-21 14:20:08 -07:00
mthca First 5.0 rc pull request 2019-01-18 17:17:20 +12:00
nes 4.21 merge window pull request 2018-12-28 14:57:10 -08:00
ocrdma cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
qedr cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
qib IB/{hfi1, qib}: Fix WC.byte_len calculation for UD_SEND_WITH_IMM 2019-01-21 14:20:08 -07:00
usnic IB/usnic: Fix potential deadlock 2018-12-19 16:30:16 -07:00
vmw_pvrdma First 5.0 rc pull request 2019-01-18 17:17:20 +12:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00