RDMA/qedr: Fix reporting QP timeout attribute
authorKamal Heib <kamalheib1@gmail.com>
Wed, 25 May 2022 13:20:29 +0000 (16:20 +0300)
committerLeon Romanovsky <leonro@nvidia.com>
Tue, 7 Jun 2022 08:46:56 +0000 (11:46 +0300)
commit118f767413ada4eef7825fbd4af7c0866f883441
treedb595e3dc5f412e12656238f827891165f059dca
parentf2906aa863381afb0015a9eb7fefad885d4e5a56
RDMA/qedr: Fix reporting QP timeout attribute

Make sure to save the passed QP timeout attribute when the QP gets modified,
so when calling query QP the right value is reported and not the
converted value that is required by the firmware. This issue was found
while running the pyverbs tests.

Fixes: cecbcddf6461 ("qedr: Add support for QP verbs")
Link: https://lore.kernel.org/r/20220525132029.84813-1-kamalheib1@gmail.com
Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Acked-by: Michal KalderonĀ <michal.kalderon@marvell.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
drivers/infiniband/hw/qedr/qedr.h
drivers/infiniband/hw/qedr/verbs.c