]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/cxgb4: Set queue pair state when being queried
authorKamal Heib <kamalheib1@gmail.com>
Mon, 20 Dec 2021 15:25:30 +0000 (17:25 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 5 Jan 2022 19:51:51 +0000 (15:51 -0400)
commitf65e178f616bf4813e3849fd6cfb9b5caf8a21b5
tree94c5a05e284f0372b9522000bb0a8d5369b38400
parentebe203d75379f645b5aacd717aa0b962089c1b9a
RDMA/cxgb4: Set queue pair state when being queried

The API for ib_query_qp requires the driver to set cur_qp_state on return,
add the missing set.

Fixes: 0ef43065a2a9 ("RDMA/cxgb4: Add query_qp support")
Link: https://lore.kernel.org/r/20211220152530.60399-1-kamalheib1@gmail.com
Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/cxgb4/qp.c