From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by dpdk.org (Postfix) with ESMTP id B01602E83 for ; Tue, 10 Nov 2015 17:46:18 +0100 (CET) Received: by wmww144 with SMTP id w144so8697846wmw.0 for ; Tue, 10 Nov 2015 08:46:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind_com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding :content-type; bh=oN4c/tglbkyfDKdhIQ9IbgK0rwfhrYi2/pHemPaB24U=; b=pK2zb+e+OdWol0cViyDjkD/PodMt+cCdDnWNqBLykrIhCzo2PX6zg+aZM6Dy5y0Tdq 0rxzgZBXYL6XXPINdJgkjf5158FSbr2aOE4FY3jnyOYlrl7akFL5KBtUSZCffB/2SOnp aq3NvnYsf9CXX3diRo4uSsA5/chCazpg7WAGvHV0pkgxWFPNyisz+YPKy8lI/dcoXqMj MDjCEvSz+Z1ZZ45XZ8+I4dFREkZhPS50RdrbQHpOfE+kHs1JTzoma1G9W0lIrm9nb9EG 4NWjSUC2Wn5EIT3raQ1DRnggB2hBghI4aH8w4FKIHy/lGvNED2IdT2ZK9y5e4j/IBkvL COJA== 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:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=oN4c/tglbkyfDKdhIQ9IbgK0rwfhrYi2/pHemPaB24U=; b=frCvTxX1jhsEZBafsZD8InrTZPO+kXPRjVCW6yzThxyOhG3+5PPRhc1GbcyalVAIfc E0A7Fhh/HbvbpUuLTytEX9y47oQ/u26jfB22wlPP7zBdRg5yZQYoE0ke3g1pv6nroyCm XQ4hi7JfJxoFAWSxnkV3LFEw3Gv36S8+5/z6Zh5RsICb67XupYXUV3BCmfzykQyhZHIG sK8ybrssDm5JqYEFioRoquzMIzaHWj+HydfB/9GvkiRgaUU4eZkmtSrmXfLv0erAfWEZ BFJd5ebUVuFoARyFqdrhJIAjMeapHwRqH4XtRJOWWDuesEUZGuTPwWRClJJkYze6dJH9 6XNA== X-Gm-Message-State: ALoCoQm8CmvHUGO75xZwWMkvrlRMTkyPBfOWbhb2qFkzpa0Q0sOBjUloNMeblmVWHkW3oZvlzauj X-Received: by 10.28.217.130 with SMTP id q124mr5491703wmg.92.1447173977895; Tue, 10 Nov 2015 08:46:17 -0800 (PST) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by smtp.gmail.com with ESMTPSA id ft4sm4377684wjb.37.2015.11.10.08.46.16 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Nov 2015 08:46:17 -0800 (PST) From: Thomas Monjalon To: Harry van Haaren Date: Tue, 10 Nov 2015 17:45:05 +0100 Message-ID: <3119098.nqKo9ItbS0@xps13> Organization: 6WIND User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <1447064542-12078-1-git-send-email-harry.van.haaren@intel.com> References: <1447063990-1021-1-git-send-email-harry.van.haaren@intel.com> <1447064542-12078-1-git-send-email-harry.van.haaren@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v3] i40e: fix resetting of stats 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: Tue, 10 Nov 2015 16:46:18 -0000 2015-11-09 10:22, Harry van Haaren: > This patch fixes a bug where only some of the statistics were being > reset when calling rte_eth_stats_reset() or rte_eth_xstats_reset(). > As both the stats reset and xstats reset do the same, refactor away > the duplicated function. > > This patch marks the VSI to update its offset, causing the stats be > look like they are reset. > > Fixes: 9aace75fc82e ("i40e: fix statistics") > > Signed-off-by: Harry van Haaren > Acked-by: Maryam Tahhan Applied, thanks