diff options
| author | Lang Cheng <chenglang@huawei.com> | 2020-11-28 18:22:37 +0800 |
|---|---|---|
| committer | Jason Gunthorpe <jgg@nvidia.com> | 2020-12-01 20:58:42 -0400 |
| commit | 0fd0175e30e487f8d70ecb2cdd67fbb514fdf50f (patch) | |
| tree | 220ef725437d361f3252e711c1aa1fd8a852d09d /tools/perf/scripts/python/bin/mem-phys-addr-record | |
| parent | RDMA/i40iw: Remove push code from i40iw (diff) | |
| download | linux-0fd0175e30e487f8d70ecb2cdd67fbb514fdf50f.tar.gz linux-0fd0175e30e487f8d70ecb2cdd67fbb514fdf50f.zip | |
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/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>
Diffstat (limited to 'tools/perf/scripts/python/bin/mem-phys-addr-record')
0 files changed, 0 insertions, 0 deletions
