From patchwork Mon May 22 10:15:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Selvin Xavier X-Patchwork-Id: 9739877 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 CDD70603F1 for ; Mon, 22 May 2017 10:16:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ACD28286EC for ; Mon, 22 May 2017 10:16:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A1BBE286F4; Mon, 22 May 2017 10:16:52 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 552F4286F3 for ; Mon, 22 May 2017 10:16:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758436AbdEVKQt (ORCPT ); Mon, 22 May 2017 06:16:49 -0400 Received: from mail-pf0-f175.google.com ([209.85.192.175]:34056 "EHLO mail-pf0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758428AbdEVKQo (ORCPT ); Mon, 22 May 2017 06:16:44 -0400 Received: by mail-pf0-f175.google.com with SMTP id 9so78067212pfj.1 for ; Mon, 22 May 2017 03:16:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=c6rBT8VjrZlxsbUg2BxSW9B4Dsmftg9owkrsVl+eqyQ=; b=VvQLgvoo8XsHcaiVSTgBZWgxBLNFojpvIeuGdFfEHgLjIMs2FDtr4ej9DC3BmxMiRb ca0qJ7yuYmSm94Y6d0YEa6lZZxTjWk8YNPVbGh9HGFfwxHYSHNbPmdjGyEFkO2e2H5d1 W8CN2j/MOC6R5IhgVfIokM959+qKO/Vn9P4gA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=c6rBT8VjrZlxsbUg2BxSW9B4Dsmftg9owkrsVl+eqyQ=; b=Ecxa/5m+KW0Xvsj1gDsmt3mUreXNs5jKdFPjT1f++LM0NUjdoi9Q+1V/fbWsTQB4et g7ZdwlZzHhm1zl6eMQsBVnEIaAIT2Hq3gDw1Woqbb+rcgIhFsheNPJllMn9w2fvXOvgw kGlvLFesUmm67mpHWCaD9nz6P5KVEbFtxZAFQTrFWlRhbziDrH9sHvHqBZGun9BUqjNB hc6cbDIPcYORf+YgUySnKZdidNdy2UXDr3R6g0n4PreT3Owc+gzaF5Un+afWlRqfBtDz nAowbbl3xBO830p76OuakLQCmtlwT3qu07GAvAUwwJff4wmDmGiiJeZdnNDKDCwcvs8N w0fQ== X-Gm-Message-State: AODbwcCi9X5oZvTF5EVwdlgGLL7OrYZZBrvZBo9E2yjnQ+OPt+fOEChI RBI/C7tVrt2xTIlE X-Received: by 10.98.86.74 with SMTP id k71mr24401964pfb.13.1495448204146; Mon, 22 May 2017 03:16:44 -0700 (PDT) Received: from dhcp-10-192-206-197.iig.avagotech.net ([192.19.239.250]) by smtp.gmail.com with ESMTPSA id m12sm38283211pgn.30.2017.05.22.03.16.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 May 2017 03:16:43 -0700 (PDT) From: Selvin Xavier To: dledford@redhat.com Cc: linux-rdma@vger.kernel.org, Somnath Kotur , Selvin Xavier Subject: [PATCH V4 for-next 13/14] RDMA/bnxt_re: Specify RDMA component when allocating stats context Date: Mon, 22 May 2017 03:15:43 -0700 Message-Id: <1495448144-18966-14-git-send-email-selvin.xavier@broadcom.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1495448144-18966-1-git-send-email-selvin.xavier@broadcom.com> References: <1495448144-18966-1-git-send-email-selvin.xavier@broadcom.com> 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 From: Somnath Kotur Starting FW version 20.6.47, firmware is keeping separate statistics for L2 and RDMA. However, driver needs to specify RDMA or not when allocating stat_ctx. Signed-off-by: Selvin Xavier --- drivers/infiniband/hw/bnxt_re/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/infiniband/hw/bnxt_re/main.c b/drivers/infiniband/hw/bnxt_re/main.c index fd61949..00dab7c 100644 --- a/drivers/infiniband/hw/bnxt_re/main.c +++ b/drivers/infiniband/hw/bnxt_re/main.c @@ -335,6 +335,7 @@ static int bnxt_re_net_stats_ctx_alloc(struct bnxt_re_dev *rdev, bnxt_re_init_hwrm_hdr(rdev, (void *)&req, HWRM_STAT_CTX_ALLOC, -1, -1); req.update_period_ms = cpu_to_le32(1000); req.stats_dma_addr = cpu_to_le64(dma_map); + req.stat_ctx_flags = STAT_CTX_ALLOC_REQ_STAT_CTX_FLAGS_ROCE; bnxt_re_fill_fw_msg(&fw_msg, (void *)&req, sizeof(req), (void *)&resp, sizeof(resp), DFLT_HWRM_CMD_TIMEOUT); rc = en_dev->en_ops->bnxt_send_fw_msg(en_dev, BNXT_ROCE_ULP, &fw_msg);