From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by dpdk.org (Postfix) with ESMTP id 1CB5328F3 for ; Wed, 23 May 2018 14:11:48 +0200 (CEST) Received: by mail-wm0-f67.google.com with SMTP id q4-v6so2447603wmq.1 for ; Wed, 23 May 2018 05:11:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=oZIS1ere0qFBz1ZF05f9j7EoQZ0t8h3ivUKOFFswhLk=; b=Xrgzhd4bojGIXhwVo/oo0DCtzYNgF8LdWlBgqSGdc3P5FpU4eRLTnY3rYLb9HoxgKK Y9UF5C37qIE4SSkPPGxnKZ1MPBJ2BYUUroJWU8wFyyqLAG/Nz2lcKin+u6DMgl6Q+tr3 oJJMopyGOoa2wByq+ucddDAIDBpFfQc/6ACTXEmz5AvQbZw4ji7Di8yXosjHK2skqbi+ w9ZCVL0XY3Z4yS77epm5HDp0PPr7uFJwDze8mal7Wnp3UObSMj/mPkVYdgMu0aQ95Tq5 xzxl/odrPckfI0wOtEkpN4wTUwjh1wNSQNOOKwR6QSpxF1VolGwRCbPn/2N1NM9bBnic Cgtw== 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=oZIS1ere0qFBz1ZF05f9j7EoQZ0t8h3ivUKOFFswhLk=; b=pm62P+cPVhQO7e9LnOQgvOGxPFDdmBBqcnGtA6d81zlObT8JS1I+0XmMagWxhbTUzE dcqKDh4tr6dyAxJ4vv8u3PWU5uk3fXoGrBzStrVGl8sDkFthtR22ukMVnTjgJ9xzvsFA zFVq962bvWdcFCadGoJwwwF8uG5dCHutgfBVUTNEIXbmujxIafoh2zzRCDBVcCz3gJk2 IfsiL3qTB7YrtvqP8fUPT0jD0zNYmn1ATqumfJfT5QRZRG4eqpyzvUDlGCyi52bzC47y AzLhllgf8naMLWQeS5W/AVKR07GVBr2P88Woy8Gq6rBUWB81WXC9UPtUltUElBGdJGnu Zr7Q== X-Gm-Message-State: ALKqPwcNUE/q17myXJoL5fbai5BRNSzcQSafVXftKPKCBnpJv8i3Btu1 C9iutRVzBoKSlw9pgdyQNXQ= X-Google-Smtp-Source: AB8JxZpoyOVYe8/AtKMS5enGkL8xLtIK/YZ9voKL6LbmLP8BTCzaWrJEsbmJgBbDTJPjSb9yOax5Hw== X-Received: by 2002:a1c:4701:: with SMTP id u1-v6mr4399855wma.42.1527077507834; Wed, 23 May 2018 05:11:47 -0700 (PDT) Received: from localhost ([2a00:23c5:be9a:5200:ce4c:82c0:d567:ecbb]) by smtp.gmail.com with ESMTPSA id v15-v6sm9330364wrp.35.2018.05.23.05.11.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 May 2018 05:11:47 -0700 (PDT) From: luca.boccassi@gmail.com To: Ajit Khaparde Cc: dpdk stable Date: Wed, 23 May 2018 13:10:08 +0100 Message-Id: <20180523121010.8385-57-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180523121010.8385-1-luca.boccassi@gmail.com> References: <20180516101323.2234-2-luca.boccassi@gmail.com> <20180523121010.8385-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'net/bnxt: fix xstats for VF' has been queued to stable release 18.02.2 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 May 2018 12:11:48 -0000 Hi, FYI, your patch has been queued to stable release 18.02.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/25/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From ce8b0aba13b89db421e8ee36f05295372031229e Mon Sep 17 00:00:00 2001 From: Ajit Khaparde Date: Tue, 22 May 2018 11:13:46 -0700 Subject: [PATCH] net/bnxt: fix xstats for VF [ upstream commit 7f799071fe75842e9e76cef98d019c1072cfb649 ] Query of port stats is permitted for VF interfaces as well. Fix the code to allow VFs to query port stats. Fixes: bfb9c2260be2 ("net/bnxt: support xstats get/reset") Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_ethdev.c | 2 +- drivers/net/bnxt/bnxt_hwrm.c | 3 --- drivers/net/bnxt/bnxt_stats.c | 5 ----- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c index 6a3572823..132d81ea3 100644 --- a/drivers/net/bnxt/bnxt_ethdev.c +++ b/drivers/net/bnxt/bnxt_ethdev.c @@ -3130,7 +3130,7 @@ skip_init: if (rte_eal_process_type() != RTE_PROC_PRIMARY) return 0; - if (BNXT_PF(bp) && pci_dev->id.device_id != BROADCOM_DEV_ID_NS2) { + if (pci_dev->id.device_id != BROADCOM_DEV_ID_NS2) { snprintf(mz_name, RTE_MEMZONE_NAMESIZE, "bnxt_%04x:%02x:%02x:%02x-%s", pci_dev->addr.domain, pci_dev->addr.bus, pci_dev->addr.devid, diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c index f5358a44f..5af69083f 100644 --- a/drivers/net/bnxt/bnxt_hwrm.c +++ b/drivers/net/bnxt/bnxt_hwrm.c @@ -3047,9 +3047,6 @@ int bnxt_hwrm_port_qstats(struct bnxt *bp) struct bnxt_pf_info *pf = &bp->pf; int rc; - if (!(bp->flags & BNXT_FLAG_PORT_STATS)) - return 0; - HWRM_PREP(req, PORT_QSTATS); req.port_id = rte_cpu_to_le_16(pf->port_id); diff --git a/drivers/net/bnxt/bnxt_stats.c b/drivers/net/bnxt/bnxt_stats.c index 00bbef65f..911ac6b87 100644 --- a/drivers/net/bnxt/bnxt_stats.c +++ b/drivers/net/bnxt/bnxt_stats.c @@ -288,11 +288,6 @@ int bnxt_dev_xstats_get_op(struct rte_eth_dev *eth_dev, unsigned int count, i; uint64_t tx_drop_pkts; - if (!(bp->flags & BNXT_FLAG_PORT_STATS)) { - PMD_DRV_LOG(ERR, "xstats not supported for VF\n"); - return 0; - } - bnxt_hwrm_port_qstats(bp); bnxt_hwrm_func_qstats_tx_drop(bp, 0xffff, &tx_drop_pkts); -- 2.14.2