From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by dpdk.org (Postfix) with ESMTP id CDB141B7A9 for ; Tue, 15 May 2018 15:48:19 +0200 (CEST) Received: by mail-wm0-f65.google.com with SMTP id j4-v6so1186771wme.1 for ; Tue, 15 May 2018 06:48:19 -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=rlqEQ244O2krWEVybUvQNWIDF2uc+CGYsPdNu9dT9RI=; b=JGk9z9rQ4EhhQQP5Min7TKK47ooLWhTzYBtYiNarjNfM31u7w3gmQyBAenZMQ0o7iD jq4JnFfpqVce/Wrme8hXC9YPFEe9EHpSk5AYOgwGXHq4qJgw/D2oTg9XVCIAa7cGvRHs uVKJrMbXYG6uCePavBEfORjONY2LOLYDMnVyZQENEYqPZMYm9wUld+JPdPm34SgZTqHo Exe+7nQqURMemX6ZldYkAakCDFKwSdYt4tj0qzcZ+8k3cgcBQ837jP/jmeUcHLEqAep2 qshE/Pdjc3F9b1WtHaJdi+CDLFz8OUKUghvTLhYZor2g/43LyzBq2olio7GjGwfIGeB/ 5MRw== 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=rlqEQ244O2krWEVybUvQNWIDF2uc+CGYsPdNu9dT9RI=; b=hamCyDeoMUdEPVNgIolexP4bTg+8nbLBb4oB3wH/TpynUIMcV18ELlEYRDUnlDlYJG 8a8xOef4XUhNJNVs2RGR+e+ZbJ1xgY6cPWvvleqLilfEegRtr9sMJ/xqKMhKLR+croWQ 3x1R9daDmGkFttJu2M9ADrjopAKUh+vN1hQjAAhTIvHUePqUI0biozbvS1ootbIZWK1b B7zHlKJpNcGQVkEs4tdsuYlx2vnsblQycPUbodFiA+eX4NTsKAuZjTVZDWC7vG4KDSCU NxUnqZFNObBrwsdd1mZwspvn3f1KMSsRA10ZT0Tok54B78YnZ3i+ZG9Bxk1OxSLuNrVW GuVA== X-Gm-Message-State: ALKqPwflQitoyDvhbtbDlo9PQ4sGuZmkrZ7NVIlqlkSSykyJbBX3lIXo JyOuhe5e58q1jsvIUk1hQ6A= X-Google-Smtp-Source: AB8JxZrfRWEX5q67EqUfvAuA9xrfyPQIN+4E0SbuJSag7OzGlTWEWwuvWq88bmF/2bqA/+z2tVE/HQ== X-Received: by 2002:a1c:5f82:: with SMTP id t124-v6mr7949709wmb.124.1526392099478; Tue, 15 May 2018 06:48:19 -0700 (PDT) Received: from localhost (slip139-92-244-193.lon.uk.prserv.net. [139.92.244.193]) by smtp.gmail.com with ESMTPSA id i30-v6sm151737wra.38.2018.05.15.06.48.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 May 2018 06:48:18 -0700 (PDT) From: luca.boccassi@gmail.com To: Hemant Agrawal Cc: Shreyansh Jain , dpdk stable Date: Tue, 15 May 2018 14:46:33 +0100 Message-Id: <20180515134731.9337-22-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180515134731.9337-1-luca.boccassi@gmail.com> References: <20180503110612.12146-2-luca.boccassi@gmail.com> <20180515134731.9337-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'net/dpaa: fix xstats implementation' 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: Tue, 15 May 2018 13:48:19 -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/16/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From 464745b5ef3682ebfe2d231f72995911d3f38b8f Mon Sep 17 00:00:00 2001 From: Hemant Agrawal Date: Wed, 25 Apr 2018 18:27:01 +0530 Subject: [PATCH] net/dpaa: fix xstats implementation [ upstream commit 339c1025a87c3eeb38a9ec5bf0679caf21bec7e6 ] Some of the applications are expecting that if n is 0, it shall return the supported number of stats. e.g. VPP Fixes: b21ed3e2a16d ("net/dpaa: support extended statistics") Signed-off-by: Hemant Agrawal Acked-by: Shreyansh Jain --- drivers/net/dpaa/dpaa_ethdev.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c index f511fa514..0828e0af6 100644 --- a/drivers/net/dpaa/dpaa_ethdev.c +++ b/drivers/net/dpaa/dpaa_ethdev.c @@ -316,12 +316,12 @@ dpaa_dev_xstats_get(struct rte_eth_dev *dev, struct rte_eth_xstat *xstats, unsigned int i = 0, num = RTE_DIM(dpaa_xstats_strings); uint64_t values[sizeof(struct dpaa_if_stats) / 8]; - if (xstats == NULL) - return 0; - if (n < num) return num; + if (xstats == NULL) + return 0; + fman_if_stats_get_all(dpaa_intf->fif, values, sizeof(struct dpaa_if_stats) / 8); -- 2.14.2