aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorLang Cheng <[email protected]>2020-11-28 18:22:37 +0800
committerJason Gunthorpe <[email protected]>2020-12-01 20:58:42 -0400
commit0fd0175e30e487f8d70ecb2cdd67fbb514fdf50f (patch)
tree220ef725437d361f3252e711c1aa1fd8a852d09d /net/lapb/lapb_subr.c
parent1d11d26cf0d6974551049a3d7353ee1336b8632e (diff)
RDMA/hns: Fix 0-length sge calculation error
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: 54d6638765b0 ("RDMA/hns: Optimize WQE buffer size calculating process") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lang Cheng <[email protected]> Signed-off-by: Weihang Li <[email protected]> Reviewed-by: Leon Romanovsky <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions