summaryrefslogtreecommitdiffstats
path: root/drivers/iommu
diff options
context:
space:
mode:
authorBrian Welty2019-01-17 21:41:32 +0100
committerGreg Kroah-Hartman2019-03-13 22:02:27 +0100
commit43b0c93918a0d208340343cf3fc923a060d86c93 (patch)
tree567ad251e5953cef1f05ad0fc32356d708ab7575 /drivers/iommu
parentperf script: Fix crash when processing recorded stat data (diff)
downloadkernel-qcow2-linux-43b0c93918a0d208340343cf3fc923a060d86c93.tar.gz
kernel-qcow2-linux-43b0c93918a0d208340343cf3fc923a060d86c93.tar.xz
kernel-qcow2-linux-43b0c93918a0d208340343cf3fc923a060d86c93.zip
IB/{hfi1, qib}: Fix WC.byte_len calculation for UD_SEND_WITH_IMM
[ Upstream commit 904bba211acc2112fdf866e5a2bc6cd9ecd0de1b ] 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: 7724105686e7 ("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/iommu')
0 files changed, 0 insertions, 0 deletions