• M
    IPoIB/cm: Fix SRQ WR leak · 518b1646
    Michael S. Tsirkin 提交于
    SRQ WR leakage has been observed with IPoIB/CM: e.g. flipping ports on
    and off will, with time, leak out all WRs and then all connections
    will start getting RNR NAKs.  Fix this in the way suggested by spec:
    move the QP being destroyed to the error state, wait for "Last WQE
    Reached" event and then post WR on a "drain QP" connected to the same
    CQ.  Once we observe a completion on the drain QP, it's safe to call
    ib_destroy_qp.
    Signed-off-by: NMichael S. Tsirkin <mst@dev.mellanox.co.il>
    Signed-off-by: NRoland Dreier <rolandd@cisco.com>
    518b1646
ipoib_cm.c 37.1 KB