From patchwork Wed May 10 10:45:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Selvin Xavier X-Patchwork-Id: 9719671 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 1FFC460236 for ; Wed, 10 May 2017 10:46:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 16E4928576 for ; Wed, 10 May 2017 10:46:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0ABDC2857F; Wed, 10 May 2017 10:46:33 +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.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, 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 8A07628576 for ; Wed, 10 May 2017 10:46:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752648AbdEJKqb (ORCPT ); Wed, 10 May 2017 06:46:31 -0400 Received: from mail-qk0-f175.google.com ([209.85.220.175]:35924 "EHLO mail-qk0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752213AbdEJKqb (ORCPT ); Wed, 10 May 2017 06:46:31 -0400 Received: by mail-qk0-f175.google.com with SMTP id u75so24493037qka.3 for ; Wed, 10 May 2017 03:46:30 -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=G+Ca3riJBc+2saKHWT3FEYYjarGBKUX1D0ICYhiB4kpriys7fXv4dAurH6144aoF06 qs2tXGIKgPGJEKxsWQ+syShGuPI4evxLUlhzodM2+iaOLYAdkteq4y9kDTiGEqXbwH+e oqfBIQ9HRKrIKTzI3LbPKO9IIP/D6qFDTk7T8= 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=tZnNEEnR1SPl2agfTVxIQG+Nt91u+wauRY3ph368hSRNLZIrsUOV3kKQPs4PqFmHGj MyA70Q4cDMDy3r4eluYsrZM9sd3lR+TEaNQ0Z6wmNj/2Mndxqd1MTwMkC0O81OmylPBt qaOnjQ4WOtpdPPaFwhPyLqDiCNH4KAu1Ts53ze7wspQ1HTzqlgd+yTz65VWQRuocmDFg kUhFIN7aN3E220X15j1t7vVvNDL32wJyG3ugQ70DtGWfHci4c5YseyfTd/iRrN8J/+bM wj5SB72Pve0kAdT+iG2CIezNsH0UCJ3v7j0zUpJUi+8nUBfNPVLkpq/4pVVO+Ez+FWMc vxXg== X-Gm-Message-State: AODbwcCYPLXTDXAEaWkWin6RMA8kHebhKx6sL/zy309TpiMOwh+f1e3H 8SGoW6Gpv2AWt1XU X-Received: by 10.55.147.135 with SMTP id v129mr4872140qkd.146.1494413190135; Wed, 10 May 2017 03:46:30 -0700 (PDT) Received: from dhcp-10-192-206-197.iig.avagotech.net ([192.19.239.250]) by smtp.gmail.com with ESMTPSA id k10sm1868531qke.3.2017.05.10.03.46.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 May 2017 03:46:29 -0700 (PDT) From: Selvin Xavier To: dledford@redhat.com, linux-rdma@vger.kernel.org Cc: Somnath Kotur , Selvin Xavier Subject: [PATCH for-next 13/14] RDMA/bnxt_re: Specify RDMA component when allocating stats context Date: Wed, 10 May 2017 03:45:38 -0700 Message-Id: <1494413139-11883-14-git-send-email-selvin.xavier@broadcom.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1494413139-11883-1-git-send-email-selvin.xavier@broadcom.com> References: <1494413139-11883-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);