From patchwork Thu Apr 27 06:11:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Amrani, Ram" X-Patchwork-Id: 9702403 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id EE398601D3 for ; Thu, 27 Apr 2017 06:11:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DDECF28404 for ; Thu, 27 Apr 2017 06:11:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D2B67285EB; Thu, 27 Apr 2017 06:11:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 54A3C285EA for ; Thu, 27 Apr 2017 06:11:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S938522AbdD0GLv (ORCPT ); Thu, 27 Apr 2017 02:11:51 -0400 Received: from mx0a-0016ce01.pphosted.com ([67.231.148.157]:48621 "EHLO mx0b-0016ce01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933185AbdD0GLt (ORCPT ); Thu, 27 Apr 2017 02:11:49 -0400 Received: from pps.filterd (m0095336.ppops.net [127.0.0.1]) by mx0a-0016ce01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id v3R6B5v8014417; Wed, 26 Apr 2017 23:11:40 -0700 Received: from avcashub1.qlogic.com ([198.186.0.116]) by mx0a-0016ce01.pphosted.com with ESMTP id 2a3agj02f9-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 26 Apr 2017 23:11:39 -0700 Received: from lb-tlvb-ramrani.il.qlogic.org (10.185.6.119) by qlc.com (10.1.4.191) with Microsoft SMTP Server id 14.3.235.1; Wed, 26 Apr 2017 23:11:39 -0700 From: Ram Amrani To: , , CC: , , , Ram Amrani Subject: [rdma-core 3/4] libqedr: fix comments and alignment in verbs file Date: Thu, 27 Apr 2017 09:11:07 +0300 Message-ID: <1493273468-23774-4-git-send-email-Ram.Amrani@cavium.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1493273468-23774-1-git-send-email-Ram.Amrani@cavium.com> References: <1493273468-23774-1-git-send-email-Ram.Amrani@cavium.com> MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=nai engine=5800 definitions=8510 signatures=668453 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1703280000 definitions=main-1704270102 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Ram Amrani --- providers/qedr/qelr_verbs.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/providers/qedr/qelr_verbs.c b/providers/qedr/qelr_verbs.c index 7419540..375664b 100644 --- a/providers/qedr/qelr_verbs.c +++ b/providers/qedr/qelr_verbs.c @@ -349,7 +349,7 @@ static inline int qelr_create_qp_buffers_sq(struct qelr_devctx *cxt, rc = qelr_chain_alloc(&qp->sq.chain, chain_size, cxt->kernel_page_size, QELR_SQE_ELEMENT_SIZE); if (rc) - DP_ERR(cxt->dbg_fp, "create qp: failed to map SQ, got %d", rc); + DP_ERR(cxt->dbg_fp, "create qp: failed to map SQ chain, got %d", rc); qp->sq.max_wr = max_send_wr; qp->sq.max_sges = cxt->sges_per_send_wr; @@ -376,7 +376,7 @@ static inline int qelr_create_qp_buffers_rq(struct qelr_devctx *cxt, rc = qelr_chain_alloc(&qp->rq.chain, chain_size, cxt->kernel_page_size, QELR_RQE_ELEMENT_SIZE); if (rc) - DP_ERR(cxt->dbg_fp, "create qp: failed to map RQ, got %d", rc); + DP_ERR(cxt->dbg_fp, "create qp: failed to map RQ chain, got %d", rc); qp->rq.max_wr = max_recv_wr; qp->rq.max_sges = cxt->sges_per_recv_wr; @@ -419,7 +419,7 @@ static inline int qelr_configure_qp_sq(struct qelr_devctx *cxt, qp->wqe_wr_id = calloc(qp->sq.max_wr, sizeof(*qp->wqe_wr_id)); if (!qp->wqe_wr_id) { DP_ERR(cxt->dbg_fp, - "create qp: failed shdow SQ memory allocation\n"); + "create qp: failed shadow SQ memory allocation\n"); return -ENOMEM; } return 0; @@ -441,7 +441,7 @@ static inline int qelr_configure_qp_rq(struct qelr_devctx *cxt, qp->rqe_wr_id = calloc(qp->rq.max_wr, sizeof(*qp->rqe_wr_id)); if (!qp->rqe_wr_id) { DP_ERR(cxt->dbg_fp, - "create qp: failed shdow RQ memory allocation\n"); + "create qp: failed shadow RQ memory allocation\n"); return -ENOMEM; } @@ -1600,13 +1600,13 @@ static int qelr_poll_cq_req(struct qelr_qp *qp, struct qelr_cq *cq, enum ibv_wc_status wc_status; switch (req->status) { - case RDMA_CQE_REQ_STS_BAD_RESPONSE_ERR: + case RDMA_CQE_REQ_STS_BAD_RESPONSE_ERR: DP_ERR(cxt->dbg_fp, "Error: POLL CQ with RDMA_CQE_REQ_STS_BAD_RESPONSE_ERR. QP icid=0x%x\n", qp->sq.icid); wc_status = IBV_WC_BAD_RESP_ERR; break; - case RDMA_CQE_REQ_STS_LOCAL_LENGTH_ERR: + case RDMA_CQE_REQ_STS_LOCAL_LENGTH_ERR: DP_ERR(cxt->dbg_fp, "Error: POLL CQ with RDMA_CQE_REQ_STS_LOCAL_LENGTH_ERR. QP icid=0x%x\n", qp->sq.icid); @@ -1663,7 +1663,7 @@ static int qelr_poll_cq_req(struct qelr_qp *qp, struct qelr_cq *cq, default: DP_ERR(cxt->dbg_fp, "IBV_WC_GENERAL_ERR. QP icid=0x%x\n", - qp->sq.icid); + qp->sq.icid); wc_status = IBV_WC_GENERAL_ERR; }