]> 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)
commit382fc5ed08137334a8f2767ee08b4e8d68d06abc
treed07f5a9c6bac6ab3c231ff122527e2a16998c579
parent7d3a3490ea83638c76d9961aec6bae204011358e
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: 488e40dc4faf ("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