OSDN Git Service

RDMA/rxe: Add check for supported QP types
authorXiao Yang <yangx.jy@cn.fujitsu.com>
Wed, 16 Dec 2020 07:17:55 +0000 (15:17 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 12 Jan 2021 20:11:35 +0000 (16:11 -0400)
commitbad07664a5a15948ff959a5dbdb5211d3655baea
tree0c226f19ba0921f0f054eefc45f2ac86230df481
parent661f385961f06f36da24cf408d461f988d0c39ad
RDMA/rxe: Add check for supported QP types

Current rdma_rxe only supports five QP types, attempting to create any
others should return an error - the type check was missed.

Link: https://lore.kernel.org/r/20201216071755.149449-2-yangx.jy@cn.fujitsu.com
Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/rxe/rxe_qp.c