IB/ipoib: Handle QP in SQE state
authorErez Shitrit <erezsh@mellanox.com>
Thu, 2 Apr 2015 10:39:02 +0000 (13:39 +0300)
committerDoug Ledford <dledford@redhat.com>
Wed, 15 Apr 2015 20:06:19 +0000 (16:06 -0400)
commit2c0107309550b332f83f8be366521557f4b3fd5a
tree1dd55899461dead8e162420a13f7579566f1b707
parent3fd0605caa74c3dc7fe69ed11ada452fe7169575
IB/ipoib: Handle QP in SQE state

As the result of a completion error the QP can moved to SQE state by
the hardware. Since it's not the Error state, there are no flushes
and hence the driver doesn't know about that.

The fix creates a task that after completion with error which is not a
flush tracks the QP state and if it is in SQE state moves it back to RTS.

Signed-off-by: Erez Shitrit <erezsh@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/ipoib/ipoib.h
drivers/infiniband/ulp/ipoib/ipoib_ib.c