]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sif: cq: fixup the CQEs when a QP is transitioned to RESET
authorWei Lin Guay <wei.lin.guay@oracle.com>
Fri, 9 Sep 2016 21:03:14 +0000 (23:03 +0200)
committerKnut Omang <knut.omang@oracle.com>
Mon, 3 Oct 2016 12:02:19 +0000 (14:02 +0200)
commit7ddd82b3f95016a733a0534cb6f2c482dd80e08d
tree65bdebc21c4c3f98b65e861065095f8c9dab1f20
parentfbc3daa12a50ee78e8322a3cf552e4d9ab5f842b
sif: cq: fixup the CQEs when a QP is transitioned to RESET

Orabug: 24652927

The sif_fixup_cqes function, which update the wr_id from the SQ handle, is
moved to reset_qp to cover the scenario where IB user reuses a QP after
performing ib_modify_qp(RESET). This patch also handles a scenario in
sif_fixup_cqes where a QP has been reset multiple times but the IB user has
not polled the associated CQ completely.

Signed-off-by: Wei Lin Guay <wei.lin.guay@oracle.com>
Reviewed-by: Knut Omang <knut.omang@oracle.com>
drivers/infiniband/hw/sif/sif_cq.c
drivers/infiniband/hw/sif/sif_qp.c