RDMA/qedr: Move variables reset to qedr_set_common_qp_params()
authorPrabhakar Kushwaha <pkushwaha@marvell.com>
Wed, 11 Aug 2021 05:16:50 +0000 (08:16 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 19 Aug 2021 17:24:59 +0000 (14:24 -0300)
commit6ef793cbd4656a7a0637404751f608674692235d
tree5dd9916aa0ca7a75a7421b86eb54bf009688fbf0
parent4b89451d2c3d488b304306f8b2d1afc7c28b4f78
RDMA/qedr: Move variables reset to qedr_set_common_qp_params()

Qedr code is tightly coupled with existing both INIT transitions.  Here,
during first INIT transition all variables are reset and the RESET state
is checked in post_recv() before any posting.

Commit dc70f7c3ed34 ("RDMA/cma: Remove unnecessary INIT->INIT transition")
exposed this bug.

So moving variables reset to qedr_set_common_qp_params() and also avoid
RESET state check for post_recv().

Link: https://lore.kernel.org/r/20210811051650.14914-1-pkushwaha@marvell.com
Signed-off-by: Michal Kalderon <mkalderon@marvell.com>
Signed-off-by: Ariel Elior <aelior@marvell.com>
Signed-off-by: Shai Malin <smalin@marvell.com>
Signed-off-by: Prabhakar Kushwaha <pkushwaha@marvell.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/qedr/verbs.c