From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 25FCB8E6C for ; Mon, 12 Oct 2015 18:45:49 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP; 12 Oct 2015 09:45:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,673,1437462000"; d="scan'208";a="809174180" Received: from sie-lab-212-222.ir.intel.com (HELO silpixa00366884.ir.intel.com) ([10.237.212.222]) by fmsmga001.fm.intel.com with ESMTP; 12 Oct 2015 09:45:49 -0700 From: Harry van Haaren To: dev@dpdk.org Date: Mon, 12 Oct 2015 17:45:31 +0100 Message-Id: <1444668333-20191-1-git-send-email-harry.van.haaren@intel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <561BD4AE.4010704@gmail.com> References: <561BD4AE.4010704@gmail.com> Subject: [dpdk-dev] [PATCH 0/2] fix vf statistic wraparound handling in macro 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: Mon, 12 Oct 2015 16:45:50 -0000 The following two patches fix a misinterpretation of the cyclic counters of igb and ixgbe VF. When the 32bit value wraps around, the code now handles the wrapped new value appropriatly. v2: - Reimplemented with Alex's suggested fix for off-by-one v1: - Initial implementation Harry van Haaren (2): ixgbe: fix VF statistic wraparound handling macro igb: fix VF statistic wraparound handling macro drivers/net/e1000/igb_ethdev.c | 3 +-- drivers/net/ixgbe/ixgbe_ethdev.c | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) -- 1.9.1