From mboxrd@z Thu Jan 1 00:00:00 1970 From: Igor Ryzhov Subject: [PATCH 1/2] ethdev: clear rx_mbuf_alloc_failed counter on rte_eth_stats_reset Date: Fri, 27 Nov 2015 13:31:06 +0300 Message-ID: <1448620267-69222-2-git-send-email-iryzhov@nfware.com> References: <1448620267-69222-1-git-send-email-iryzhov@nfware.com> Cc: Igor Ryzhov To: dev@dpdk.org Return-path: Received: from mail-lf0-f41.google.com (mail-lf0-f41.google.com [209.85.215.41]) by dpdk.org (Postfix) with ESMTP id 4924C374D for ; Fri, 27 Nov 2015 11:31:31 +0100 (CET) Received: by lffu14 with SMTP id u14so124842296lff.1 for ; Fri, 27 Nov 2015 02:31:30 -0800 (PST) In-Reply-To: <1448620267-69222-1-git-send-email-iryzhov@nfware.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" --- lib/librte_ether/rte_ethdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c index 3840775..41f5f0b 100644 --- a/lib/librte_ether/rte_ethdev.c +++ b/lib/librte_ether/rte_ethdev.c @@ -1456,6 +1456,7 @@ rte_eth_stats_reset(uint8_t port_id) RTE_FUNC_PTR_OR_RET(*dev->dev_ops->stats_reset); (*dev->dev_ops->stats_reset)(dev); + dev->data->rx_mbuf_alloc_failed = 0; } /* retrieve ethdev extended statistics */ -- 2.4.9 (Apple Git-60)