]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
RDMA/qedr: Fix reporting QP timeout attribute
authorKamal Heib <kamalheib1@gmail.com>
Wed, 25 May 2022 13:20:29 +0000 (16:20 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Jul 2022 15:31:16 +0000 (17:31 +0200)
commit51e04827bb18ea6dc033be7bffd7bab930a11a8d
tree79825c20a07ae0b6ea69509ce49d81184ea7eb87
parent1e0b6809fcba0405611824d9cbcb48773bafe3e7
RDMA/qedr: Fix reporting QP timeout attribute

commit 118f767413ada4eef7825fbd4af7c0866f883441 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/hw/qedr/qedr.h
drivers/infiniband/hw/qedr/verbs.c