From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id D93781B44F for ; Thu, 14 Feb 2019 16:43:10 +0100 (CET) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3DA6A7DCC2; Thu, 14 Feb 2019 15:43:10 +0000 (UTC) Received: from dmarchan.remote.csb (ovpn-204-16.brq.redhat.com [10.40.204.16]) by smtp.corp.redhat.com (Postfix) with ESMTP id BC7C3600C4; Thu, 14 Feb 2019 15:43:08 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: wenzhuo.lu@intel.com, jingjing.wu@intel.com, bernard.iremonger@intel.com Date: Thu, 14 Feb 2019 16:42:50 +0100 Message-Id: <1550158972-21895-4-git-send-email-david.marchand@redhat.com> In-Reply-To: <1550158972-21895-1-git-send-email-david.marchand@redhat.com> References: <1550158972-21895-1-git-send-email-david.marchand@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Thu, 14 Feb 2019 15:43:10 +0000 (UTC) Subject: [dpdk-dev] [PATCH 3/5] app/testpmd: add missing transmit errors stats X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Feb 2019 15:43:11 -0000 pmd can report transmit errors but those stats are not accounted here. Signed-off-by: David Marchand --- app/test-pmd/testpmd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index 984155a..3acd97b 100644 --- a/app/test-pmd/testpmd.c +++ b/app/test-pmd/testpmd.c @@ -1838,6 +1838,7 @@ struct extmem_param { total_recv += stats.ipackets; total_xmit += stats.opackets; total_rx_dropped += stats.imissed; + port->tx_dropped += stats.oerrors; total_tx_dropped += port->tx_dropped; total_rx_nombuf += stats.rx_nombuf; -- 1.8.3.1