RDMA/hns: Add verification of QP type when post_recv
authorWenpeng Liang <liangwenpeng@huawei.com>
Sat, 30 Jan 2021 08:58:10 +0000 (16:58 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 8 Feb 2021 23:37:36 +0000 (19:37 -0400)
commit204cbe423b6ea8368eaa17b0c42542dc4f719c1f
treefb2895943e4a94238dc5835ac2ad756b5ff721a3
parent2e07a3d945851f0edc192336b3ac411e806c4da2
RDMA/hns: Add verification of QP type when post_recv

The post_recv only supports QP types of RC, GSI and UD.

Link: https://lore.kernel.org/r/1611997090-48820-13-git-send-email-liweihang@huawei.com
Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c