lkml.org 
[lkml]   [2008]   [Jun]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    SubjectIB/ehca: Reject send WRs only for RESET, INIT and RTR state
    Date
    Signed-off-by: Joachim Fenkes <fenkes@de.ibm.com>
    ---
    drivers/infiniband/hw/ehca/ehca_reqs.c | 6 ++++--
    1 files changed, 4 insertions(+), 2 deletions(-)

    diff --git a/drivers/infiniband/hw/ehca/ehca_reqs.c b/drivers/infiniband/hw/ehca/ehca_reqs.c
    index bbe0436..f093b00 100644
    --- a/drivers/infiniband/hw/ehca/ehca_reqs.c
    +++ b/drivers/infiniband/hw/ehca/ehca_reqs.c
    @@ -421,8 +421,10 @@ int ehca_post_send(struct ib_qp *qp,
    int ret = 0;
    unsigned long flags;

    - if (unlikely(my_qp->state != IB_QPS_RTS)) {
    - ehca_err(qp->device, "QP not in RTS state qpn=%x", qp->qp_num);
    + /* Reject WR if QP is in RESET, INIT or RTR state */
    + if (unlikely(my_qp->state < IB_QPS_RTS)) {
    + ehca_err(qp->device, "Invalid QP state qp_state=%d qpn=%x",
    + my_qp->state, qp->qp_num);
    return -EINVAL;
    }

    --
    1.5.5



    \
     
     \ /
      Last update: 2008-06-06 18:39    [W:0.023 / U:1.180 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site