lkml.org 
[lkml]   [2022]   [Jan]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.4 056/114] RDMA/cxgb4: Set queue pair state when being queried
    Date
    From: Kamal Heib <kamalheib1@gmail.com>

    [ Upstream commit e375b9c92985e409c4bb95dd43d34915ea7f5e28 ]

    The API for ib_query_qp requires the driver to set cur_qp_state on return,
    add the missing set.

    Fixes: 67bbc05512d8 ("RDMA/cxgb4: Add query_qp support")
    Link: https://lore.kernel.org/r/20211220152530.60399-1-kamalheib1@gmail.com
    Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
    Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
    Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/infiniband/hw/cxgb4/qp.c | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/drivers/infiniband/hw/cxgb4/qp.c b/drivers/infiniband/hw/cxgb4/qp.c
    index 67e4002bd776e..31a8119685114 100644
    --- a/drivers/infiniband/hw/cxgb4/qp.c
    +++ b/drivers/infiniband/hw/cxgb4/qp.c
    @@ -1896,6 +1896,7 @@ int c4iw_ib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr,
    memset(attr, 0, sizeof *attr);
    memset(init_attr, 0, sizeof *init_attr);
    attr->qp_state = to_ib_qp_state(qhp->attr.state);
    + attr->cur_qp_state = to_ib_qp_state(qhp->attr.state);
    init_attr->cap.max_send_wr = qhp->attr.sq_num_entries;
    init_attr->cap.max_recv_wr = qhp->attr.rq_num_entries;
    init_attr->cap.max_send_sge = qhp->attr.sq_max_sges;
    --
    2.34.1


    \
     
     \ /
      Last update: 2022-01-24 19:54    [W:4.485 / U:0.028 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site