From mboxrd@z Thu Jan 1 00:00:00 1970 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) 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=jsIWd/sPiqoaYjtF3ILK1RPHfihjbbtj5dlPikH6CSg=; b=PsaF4fBBCs+EKfeoYLPJvaOcxHlEFDh2cAzkmEfdSvQ1BaO9ibd+X7FhlD4Hntbm9f FEUWNnRLb3jgcvFVDsLtt/ZV4TiO2m6mcNsLwFtuIHDiA2oWLtvI0Lhs6klE9GbuHI6/ CfKTpAuiCIpzyezTfRobsmndzKen+Kqp8igIj+BZtQQfbq6SdEESbgQjS9bTIFP02I6+ L0FgfB2k7pBdDRnOtd2Xywnrq+5qX15pVKMvwimyORdM4Hvlpovz2ttPYFpMNhu+j17+ DkPS6SNZiUcJ/vCFHuvHDfNYsF9y5+PrlqJg5tRUxPpSW99vvONyHF7W4U/GZ6uMkgTT w1Ow== 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=jsIWd/sPiqoaYjtF3ILK1RPHfihjbbtj5dlPikH6CSg=; b=aeaSLDB03+jxQ1k4BoMK5MGntAM9iynCu7mtWtTiGYSvaJXEjgJN/DXIH+Dre8dU/F j3hf8Jy6aawZAzArO18ISuiZGaqZutZNgjSB/H5Z+86njH5Li1Ie0WVvJDw7VGRSPrYz bTasgL/qXnK1dGSmKX8/yf52O36Q/me2+t7CuW3rhJc+GgbWe/nhQMnbtVEmQ+SUxCr6 RsbvCGDVzdB8cWGYnPFSyO4XtFWIHLah/7Z/b1DrCfqfD68bB5Jl6ksiFKeJvXBXLtU8 ySpUMGqH6R6lT7e8wHo0xtfWmPof5bTRO6X27qv6skK9uEHndg5N/9vnWcLkzaoplUpW Y5UQ== X-Gm-Message-State: ALoCoQnI5+LdTtaVns0IsBGtYe8sc8m309SIgi0pSgf8H51trjwbszhRf5RKkmc09b4icypbxhbW X-Received: by 10.25.21.80 with SMTP id l77mr4190203lfi.43.1448620291776; Fri, 27 Nov 2015 02:31:31 -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:31 -0800 (PST) From: Igor Ryzhov To: dev@dpdk.org Date: Fri, 27 Nov 2015 13:31:07 +0300 Message-Id: <1448620267-69222-3-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 2/2] virtio: remove unnecessary rx_mbuf_alloc_failed counter clearing 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:32 -0000 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)