From patchwork Wed May 17 09:19:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Selvin Xavier X-Patchwork-Id: 9730517 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 35EC5602DB for ; Wed, 17 May 2017 09:21:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 31BF828718 for ; Wed, 17 May 2017 09:21:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2569E27C2D; Wed, 17 May 2017 09:21:31 +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 9A72C27C2D for ; Wed, 17 May 2017 09:21:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754096AbdEQJV2 (ORCPT ); Wed, 17 May 2017 05:21:28 -0400 Received: from mail-qk0-f176.google.com ([209.85.220.176]:36329 "EHLO mail-qk0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754015AbdEQJV0 (ORCPT ); Wed, 17 May 2017 05:21:26 -0400 Received: by mail-qk0-f176.google.com with SMTP id u75so4782491qka.3 for ; Wed, 17 May 2017 02:21:25 -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=cNL3RMGehQ4PLUEtjx/aYKr9r1RTlahLqC4mCv/hqSNlI9H/VY3TZlASnsw+0oJMDl tJxsyQqtqU96HzrcbNaHUgyVkiitZp9UZl8xbd/8oprlbgc5futr/wEPqPYLF1M3ysrL EMZadRpsAzPAcurQ3dv6A0F4QDGucuxKZdEhQ= 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=Y5MfyFOu5SbndK783nQG5xMjffFHXTiLDxMW/k6qOVErDzpuhdwESUFLltPIeVEd/U uKO6yKda088jwZsG2M+73OEt11XupjePj8EssMB1lPpQqLAvae1y/fxLyr89qb+jViMe TBtIdQmVxRyP68QLipoEf0FQy/uW8onaCJZ88lc0UdF4nQbRtRb1+j57WTcIgVutItUk GqSe+5uBvV+4fhDe6tU5h+aVNT+TPNOpgRhbcYELeNBMTvP9yGriMb9M7zu7JTe/LpaL AZ0GtvmtsDQOsf0KITSPYP1e/ZFwkMhD19lz2FuckJyd1dI04kEwNr+i2JA5N5uX0WQE 2C5A== X-Gm-Message-State: AODbwcCDsRGWPOxzS6hMpjWJx/H13AaQyq2RObBo4dUGZoDluCyfWdYO zkWuE9lHwLCNSKUa X-Received: by 10.55.16.104 with SMTP id a101mr1963141qkh.16.1495012884690; Wed, 17 May 2017 02:21:24 -0700 (PDT) Received: from dhcp-10-192-206-197.iig.avagotech.net ([192.19.239.250]) by smtp.gmail.com with ESMTPSA id t136sm998431qke.40.2017.05.17.02.21.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 May 2017 02:21:24 -0700 (PDT) From: Selvin Xavier To: dledford@redhat.com Cc: linux-rdma@vger.kernel.org, Somnath Kotur , Selvin Xavier Subject: [PATCH V2 for-next 13/15] RDMA/bnxt_re: Specify RDMA component when allocating stats context Date: Wed, 17 May 2017 02:19:49 -0700 Message-Id: <1495012791-5053-14-git-send-email-selvin.xavier@broadcom.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1495012791-5053-1-git-send-email-selvin.xavier@broadcom.com> References: <1495012791-5053-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);