• Michael S. Tsirkin's avatar
    IPoIB/cm: Fix SRQ WR leak · 518b1646
    Michael S. Tsirkin authored
    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: default avatarMichael S. Tsirkin <mst@dev.mellanox.co.il>
    Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
    518b1646
ipoib_verbs.c 7.13 KB