aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/sw/siw/siw_verbs.c
diff options
context:
space:
mode:
authorYixian Liu <liuyixian@huawei.com>2019-12-10 20:45:02 +0800
committerJason Gunthorpe <jgg@mellanox.com>2020-01-03 15:48:48 -0400
commit4768820243d71d49f1044b3f911ac3d52bdb79af (patch)
treea78b651869655a4a61cbb76fd56d21d3bed63579 /drivers/infiniband/sw/siw/siw_verbs.c
parentRDMA/bnxt_re: Report more number of completion vectors (diff)
downloadlinux-dev-4768820243d71d49f1044b3f911ac3d52bdb79af.tar.xz
linux-dev-4768820243d71d49f1044b3f911ac3d52bdb79af.zip
RDMA/hns: Simplify the calculation and usage of wqe idx for post verbs
Currently, the wqe idx is calculated repeatly everywhere it is used. This patch defines wqe_idx and calculated it only once, then just use it as needed. Fixes: 2d40788825ac ("RDMA/hns: Add support for processing send wr and receive wr") Link: https://lore.kernel.org/r/1575981902-5274-1-git-send-email-liweihang@hisilicon.com Signed-off-by: Yixian Liu <liuyixian@huawei.com> Signed-off-by: Weihang Li <liweihang@hisilicon.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/sw/siw/siw_verbs.c')
0 files changed, 0 insertions, 0 deletions