]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sif: cq: cleanup cqe once a kernel qp is destroyed/reset
authorWei Lin Guay <wei.lin.guay@oracle.com>
Mon, 31 Oct 2016 18:06:28 +0000 (19:06 +0100)
committerKnut Omang <knut.omang@oracle.com>
Fri, 11 Nov 2016 16:36:59 +0000 (17:36 +0100)
commit05606e033f4e2bf474bc914d0d87204b530c35b9
tree2195f9832858b3739df3143d8a2883df3e42a849
parentc2cf0f102632f1fe3531d7beaba5aeb68fbfdaf3
sif: cq: cleanup cqe once a kernel qp is destroyed/reset

To ease the sqflush/rqflush workaround, sifdrv removes
all the associated cqes once a kernel qp is destroy/reset.

Even though IB specification 10.2.4.4 mentioned that
"Destroying a QP does not guarantee that CQEs of that
QP are deallocated from the CQ upon destruction.",
it also stated that "Even if the CQEs are already on
the CQ, it might not be possible to retrieve them"

Thus, IB spec is indicating that it is vendor specific
implementation and the ULP should not assume that the
cqes are in the cq once a qp is destroyed/reset.

Orabug: 25070316

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/version.c
drivers/infiniband/hw/sif/versioninfo.h