]> 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)
commit958851700bc5cd643a825028cf1efbe365f0f783
tree10f257a25afd037f44de224f5c84c593cb7d1a47
parent382fc5ed08137334a8f2767ee08b4e8d68d06abc
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: 488e40dc4faf ("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