]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/hns: Fix the size setting error when copying CQE in clean_cq()
authorWenpeng Liang <liangwenpeng@huawei.com>
Mon, 27 Sep 2021 12:55:56 +0000 (20:55 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 27 Sep 2021 17:49:48 +0000 (14:49 -0300)
commit8ef218255881bc35f4214562605bf5e3bd5b152b
treed07f5a9c6bac6ab3c231ff122527e2a16998c579
parentd187626b8bbaf8b5e29e7af686c8e403716db307
RDMA/hns: Fix the size setting error when copying CQE in clean_cq()

The size of CQE is different for different versions of hardware, so the
driver needs to specify the size of CQE explicitly.

Fixes: 33df66c5bd71 ("RDMA/hns: Add support for CQE in size of 64 Bytes")
Link: https://lore.kernel.org/r/20210927125557.15031-2-liangwenpeng@huawei.com
Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c