OSDN Git Service

RDMA/mlx5: Refactor QP type check to be as early as possible
authorLeon Romanovsky <leonro@mellanox.com>
Sun, 25 Feb 2018 11:39:52 +0000 (13:39 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 28 Feb 2018 20:16:36 +0000 (13:16 -0700)
commit55de9a77daf3064e4f49296260d975885b574663
tree2285b755ed7a02832fa0dc329bd2d36eb3f2b901
parent74630e8204f3f00671b9b3cdf4101b8deadae42b
RDMA/mlx5: Refactor QP type check to be as early as possible

Perform QP type check in one place and fail as early as possible.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/qp.c