From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nfware-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=QZcH313QZHTM4IEoNoO3f2i2orJGgfjSuMPaeiFy8u4=; b=QA/XaPVKYRFzvOoq0MP97jL42/b2cMFZwz2B3ZjooQ/OP6PFSoLDfmc+6lPxLA+h1y RT2UPsUHeEd0Nt8l6Z9ppK1bOLhwP5SBs2RkgXt+pFxFgbWLH/Tujx27xlpg6HtigtvY uXdrpGVtR4cowLymmTFwKc7aIWrHOuK/bH3lZ+ZXZA/KGRrJWFvSYTbiSwJ2PWwxLknl 1oL8yhfZY0Rg+ZeLLLnhCahNfsFngc1xEtOsl9imQfu/Nb09DAdGGiWolqjR+LijU9ka EbADHSZUYkONQBFa6aTI0W2wZoocL+FznH8NVehVN32rBF2Ozym8Fa2Y/AIT53lpsZBU t0AA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=QZcH313QZHTM4IEoNoO3f2i2orJGgfjSuMPaeiFy8u4=; b=KM3ehTNzKliaQGl5ZjeKPSdWrbJMECZyzN+pPrVYYjiNThKlujyaYje/posQieSF2V q01s8ILtMJuwJf3LK46xMzHwcmY0wEVkgrJS6rI/nGu01UQU98502Oi4rE943yiCqPXv S+djAMaHlepD4R/4ZMS70JaY76aTvsCqjXl1VqF9jrB0QhkStiZOSVoV+k9oUkY0v6zd 8xF5vEJJIntFlejrA6Y2tfHAvEMsVgQ/wGDAM/wwXUnhpZ4veaZwT7KYZW2z56/k7j23 BZiYUvSmPEBbzj4oYdhwNp4LB8qP9wSOzXOm69THNqWRmaxfB6o0tDhTJKPsXtV97dxI 96+g== X-Gm-Message-State: ALoCoQnuw666DofFMMo07g8I1P3xtFNW3v6ej6sFDx0f6UxqIVAA688Lcy+qud/S0OaMVn8qo+pf X-Received: by 10.25.154.9 with SMTP id c9mr16230867lfe.79.1448620290924; Fri, 27 Nov 2015 02:31:30 -0800 (PST) Received: from localhost.localdomain (vpn.arccn.ru. [95.182.74.2]) by smtp.gmail.com with ESMTPSA id p69sm4935058lfe.42.2015.11.27.02.31.30 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 27 Nov 2015 02:31:30 -0800 (PST) From: Igor Ryzhov To: dev@dpdk.org Date: Fri, 27 Nov 2015 13:31:06 +0300 Message-Id: <1448620267-69222-2-git-send-email-iryzhov@nfware.com> X-Mailer: git-send-email 2.4.9 (Apple Git-60) In-Reply-To: <1448620267-69222-1-git-send-email-iryzhov@nfware.com> References: <1448620267-69222-1-git-send-email-iryzhov@nfware.com> Cc: Igor Ryzhov Subject: [dpdk-dev] [PATCH 1/2] ethdev: clear rx_mbuf_alloc_failed counter on rte_eth_stats_reset X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Nov 2015 10:31:31 -0000 --- 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)