From mboxrd@z Thu Jan 1 00:00:00 1970 From: Igor Ryzhov Subject: [PATCH 2/2] virtio: remove unnecessary rx_mbuf_alloc_failed counter clearing Date: Fri, 27 Nov 2015 13:31:07 +0300 Message-ID: <1448620267-69222-3-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-f46.google.com (mail-lf0-f46.google.com [209.85.215.46]) by dpdk.org (Postfix) with ESMTP id 188285921 for ; Fri, 27 Nov 2015 11:31:32 +0100 (CET) Received: by lffu14 with SMTP id u14so124842746lff.1 for ; Fri, 27 Nov 2015 02:31:31 -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" This counter is cleared in rte_eth_stats_reset. Signed-off-by: Igor Ryzhov --- drivers/net/virtio/virtio_ethdev.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index 74c00ee..f5b72a3 100644 --- a/drivers/net/virtio/virtio_ethdev.c +++ b/drivers/net/virtio/virtio_ethdev.c @@ -788,8 +788,6 @@ virtio_dev_stats_reset(struct rte_eth_dev *dev) rxvq->broadcast = 0; memset(rxvq->size_bins, 0, sizeof(rxvq->size_bins[0]) * 8); } - - dev->data->rx_mbuf_alloc_failed = 0; } static void -- 2.4.9 (Apple Git-60)