]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/hns: Add the check of the CQE size of the user space
authorWenpeng Liang <liangwenpeng@huawei.com>
Mon, 27 Sep 2021 12:55:57 +0000 (20:55 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 27 Sep 2021 17:49:49 +0000 (14:49 -0300)
commit2d1c2149985de6ef164ef90ec46876619f2cdd83
tree10f257a25afd037f44de224f5c84c593cb7d1a47
parent8ef218255881bc35f4214562605bf5e3bd5b152b
RDMA/hns: Add the check of the CQE size of the user space

If the CQE size of the user space is not the size supported by the
hardware, the creation of CQ should be stopped.

Fixes: 33df66c5bd71 ("RDMA/hns: Add support for CQE in size of 64 Bytes")
Link: https://lore.kernel.org/r/20210927125557.15031-3-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_cq.c