]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitee0527299551d7e4335a7270ea11044da9e57253
tree1dd55899461dead8e162420a13f7579566f1b707
parentdcf7ec874265665802fa1a62de7c5f3d406054f3
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