Message ID | 20230120033456.29710-1-fengchengwen@huawei.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 604114242A; Fri, 20 Jan 2023 04:41:37 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4A6F742DB6; Fri, 20 Jan 2023 04:41:11 +0100 (CET) Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by mails.dpdk.org (Postfix) with ESMTP id 4E2DB41101 for <dev@dpdk.org>; Fri, 20 Jan 2023 04:41:05 +0100 (CET) Received: from dggpeml500024.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4Nylbl6VmszZfn9; Fri, 20 Jan 2023 11:39:15 +0800 (CST) Received: from localhost.localdomain (10.50.163.32) by dggpeml500024.china.huawei.com (7.185.36.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Fri, 20 Jan 2023 11:41:02 +0800 From: Chengwen Feng <fengchengwen@huawei.com> To: <thomas@monjalon.net>, <ferruh.yigit@amd.com>, <andrew.rybchenko@oktetlabs.ru> CC: <dev@dpdk.org>, <ciara.power@intel.com>, <kevin.laatz@intel.com>, <bruce.richardson@intel.com> Subject: [PATCH v4 0/5] support dmadev/ethdev stats reset Date: Fri, 20 Jan 2023 03:34:51 +0000 Message-ID: <20230120033456.29710-1-fengchengwen@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221219090723.29356-1-fengchengwen@huawei.com> References: <20221219090723.29356-1-fengchengwen@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.50.163.32] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpeml500024.china.huawei.com (7.185.36.10) X-CFilter-Loop: Reflected X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org |
Series |
support dmadev/ethdev stats reset
|
|
Message
fengchengwen
Jan. 20, 2023, 3:34 a.m. UTC
This patchset contains dmadev/ethdev stats reset, and also support hide zero for ethdev xstats and two telemetry related bugs. Chengwen Feng (5): dmadev: support stats reset telemetry command telemetry: fix repeat display when callback don't init dict ethdev: add newline to telemetry log string ethdev: support xstats reset telemetry command ethdev: telemetry xstats support hide zero --- v4: * solve the internal don't commit for 5/5 patch. v3: * address Bruce's comment on 1/5 and 2/5 patch, and also for 4/5 patch. * reword the help info of 5/5 patch. v2: * address Bruce's comment on 2/5 patch. * support output success when stats reset. lib/dmadev/rte_dmadev.c | 43 ++++++++++++++++++++++++++++++ lib/ethdev/rte_ethdev.c | 56 ++++++++++++++++++++++++++++++++------- lib/telemetry/telemetry.c | 2 +- 3 files changed, 91 insertions(+), 10 deletions(-)
Comments
20/01/2023 04:34, Chengwen Feng: > This patchset contains dmadev/ethdev stats reset, and also support > hide zero for ethdev xstats and two telemetry related bugs. > > Chengwen Feng (5): > dmadev: support stats reset telemetry command > telemetry: fix repeat display when callback don't init dict > ethdev: add newline to telemetry log string > ethdev: support xstats reset telemetry command > ethdev: telemetry xstats support hide zero Ping for review.
On Fri, Jan 20, 2023 at 03:34:51AM +0000, Chengwen Feng wrote: > This patchset contains dmadev/ethdev stats reset, and also support > hide zero for ethdev xstats and two telemetry related bugs. > > Chengwen Feng (5): > dmadev: support stats reset telemetry command > telemetry: fix repeat display when callback don't init dict > ethdev: add newline to telemetry log string > ethdev: support xstats reset telemetry command > ethdev: telemetry xstats support hide zero > On one level, I can understand how this may be useful, but on the other side, we also support having multiple different clients connecting to telemetry simultaneously. Would it not be problematic to have stats suddenly being reset by one connection without the others being aware of it? /Bruce
On 2023/2/8 22:17, Bruce Richardson wrote: > On Fri, Jan 20, 2023 at 03:34:51AM +0000, Chengwen Feng wrote: >> This patchset contains dmadev/ethdev stats reset, and also support >> hide zero for ethdev xstats and two telemetry related bugs. >> >> Chengwen Feng (5): >> dmadev: support stats reset telemetry command >> telemetry: fix repeat display when callback don't init dict >> ethdev: add newline to telemetry log string >> ethdev: support xstats reset telemetry command >> ethdev: telemetry xstats support hide zero >> > On one level, I can understand how this may be useful, but on the other > side, we also support having multiple different clients connecting to > telemetry simultaneously. Would it not be problematic to have stats > suddenly being reset by one connection without the others being aware of > it? It's a problem. Anyone who can connect can execute the commands. For this modify case, I suggest adding LOG for later refer. and will fix in V5. Thanks. > > /Bruce > . >