linux_dsm_epyc7002/drivers/infiniband/hw
Lang Cheng a5c7bc6097 RDMA/hns: Fix 0-length sge calculation error
[ Upstream commit 0fd0175e30e487f8d70ecb2cdd67fbb514fdf50f ]

One RC SQ WQE can store 2 sges but UD can't, so ignore 2 valid sges of
wr.sglist for RC which have been filled in WQE before setting extended
sge.  Either of RC and UD can not contain 0-length sges, so these 0-length
sges should be skipped.

Fixes: 54d6638765 ("RDMA/hns: Optimize WQE buffer size calculating process")
Link: https://lore.kernel.org/r/1606558959-48510-2-git-send-email-liweihang@huawei.com
Signed-off-by: Lang Cheng <chenglang@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-12-30 11:53:28 +01:00
..
bnxt_re RDMA/bnxt_re: Fix entry size during SRQ create 2020-12-30 11:52:57 +01:00
cxgb4 RDMA/cxgb4: Validate the number of CQEs 2020-12-30 11:53:19 +01:00
efa RDMA/efa: Use the correct current and new states in modify QP 2020-12-01 20:53:48 -04:00
hfi1 IB/hfi1: Ensure correct mm is used at all times 2020-11-25 20:30:46 -04:00
hns RDMA/hns: Fix 0-length sge calculation error 2020-12-30 11:53:28 +01:00
i40iw RDMA/i40iw: Address an mmap handler exploit in i40iw 2020-11-25 10:38:11 -04:00
mlx4 RDMA: Explicitly pass in the dma_device to ib_register_device 2020-10-16 13:53:46 -03:00
mlx5 RDMA/mlx5: Fix corruption of reg_pages in mlx5_ib_rereg_user_mr() 2020-12-30 11:53:01 +01:00
mthca RDMa/mthca: Work around -Wenum-conversion warning 2020-12-30 11:53:08 +01:00
ocrdma RDMA: Explicitly pass in the dma_device to ib_register_device 2020-10-16 13:53:46 -03:00
qedr RDMA/qedr: iWARP invalid(zero) doorbell address fix 2020-12-01 20:52:07 -04:00
qib Merge branch 'mlx5_active_speed' into rdma.git for-next 2020-09-18 10:31:45 -03:00
usnic RDMA: Explicitly pass in the dma_device to ib_register_device 2020-10-16 13:53:46 -03:00
vmw_pvrdma RDMA/pvrdma: Fix missing kfree() in pvrdma_register_device() 2020-11-12 13:05:46 -04:00
Makefile RDMA/iw_cxgb3: Remove the iw_cxgb3 module from kernel 2019-10-04 15:08:59 -03:00