From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5F73DA04C7 for ; Wed, 16 Sep 2020 11:59:03 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 51B991C1A0; Wed, 16 Sep 2020 11:59:03 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by dpdk.org (Postfix) with ESMTP id E3F1E1C1A0 for ; Wed, 16 Sep 2020 11:59:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1600250341; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xHvkUcFDVzP4KdgAlTv77yFWCuQ+r17Yrqc8tjbisrw=; b=ilUbhIjfSluRs2qGH+w+L/PfzeVsAKz9yGhIrsSDrgkXipc5MYxGo9rQMEiUf6CGv3ro1L ZwK2u+UbOZud7qXhilya7VK3IlemKt2w/zBUOKQRkv3RbswChqCL+nTuh8LJ1ZalEoV8V5 QLrn5zQTDnj6KKd7bof8ledfao4YpAQ= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-125-TY64ufn9NYWdrtgK0-ERQw-1; Wed, 16 Sep 2020 05:58:57 -0400 X-MC-Unique: TY64ufn9NYWdrtgK0-ERQw-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id BAC8B8015A4; Wed, 16 Sep 2020 09:58:55 +0000 (UTC) Received: from rh.redhat.com (unknown [10.33.36.243]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0BD2E5DEA7; Wed, 16 Sep 2020 09:58:53 +0000 (UTC) From: Kevin Traynor To: stable@dpdk.org Cc: Kevin Traynor , Wei Hu Date: Wed, 16 Sep 2020 10:58:44 +0100 Message-Id: <20200916095844.130917-1-ktraynor@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=ktraynor@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] [PATCH 18.11] app/testpmd: fix xstats clear 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: , Errors-To: stable-bounces@dpdk.org Sender: "stable" rte_eth_xstats_reset() was mistakenly removed from nic_xstats_clear() in fixed commit during rebasing. This caused the xstats not be be cleared when 'clear port xstats all' was executed from the testpmd command line. Fix by adding back rte_eth_xstats_reset(). Fixes: 3e64dd9f527d ("app/testpmd: fix stats error message") Cc: Wei Hu (Xavier) Signed-off-by: Kevin Traynor --- app/test-pmd/config.c | 1 + 1 file changed, 1 insertion(+) diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index 3b588e2042..3d854099d2 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -319,4 +319,5 @@ nic_xstats_clear(portid_t port_id) return; } + rte_eth_xstats_reset(port_id); ret = rte_eth_stats_get(port_id, &ports[port_id].stats); -- 2.26.2