]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
IB/rxe: Clear queue buffer when modifying QP to reset
authorYonatan Cohen <yonatanc@mellanox.com>
Wed, 16 Nov 2016 08:39:17 +0000 (10:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Nov 2016 08:56:57 +0000 (09:56 +0100)
commitfc9275365065937944ff7cdc494af8147a7e9443
treebf192af98bf1a6f2bfd7d4cc74003554461392e8
parent3c87b4a8f6d5394990c73af07d56fcea748b1400
IB/rxe: Clear queue buffer when modifying QP to reset

commit aa75b07b478a774b1432e2df1be5cd8ae834de0f upstream.

RXE resets the send-q only once in rxe_qp_init_req() when
QP is created, but when the QP is reused after QP reset, the send-q
holds previous garbage data.

This garbage data wrongly fails CQEs that otherwise
should have completed successfully.

Fixes: 8700e3e7c485 ("Soft RoCE driver")
Signed-off-by: Yonatan Cohen <yonatanc@mellanox.com>
Reviewed-by: Moni Shoua <monis@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/sw/rxe/rxe_qp.c
drivers/infiniband/sw/rxe/rxe_queue.c
drivers/infiniband/sw/rxe/rxe_queue.h