From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 86814590E for ; Tue, 20 Sep 2016 11:39:00 +0200 (CEST) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga105.fm.intel.com with ESMTP; 20 Sep 2016 02:38:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,367,1470726000"; d="scan'208";a="11665210" Received: from dpdk2.bj.intel.com ([172.16.182.65]) by orsmga004.jf.intel.com with ESMTP; 20 Sep 2016 02:38:57 -0700 From: Zhiyong Yang To: dev@dpdk.org Cc: yuanhan.liu@linux.intel.com, thomas.monjalon@6wind.com, pmatilai@redhat.com, harry.van.haaren@intel.com Date: Tue, 20 Sep 2016 17:36:43 +0800 Message-Id: <1474364205-111569-1-git-send-email-zhiyong.yang@intel.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1473408927-40364-1-git-send-email-zhiyong.yang@intel.com> References: <1473408927-40364-1-git-send-email-zhiyong.yang@intel.com> Subject: [dpdk-dev] [PATCH v3 0/2] net/vhost: add pmd xstats support 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, 20 Sep 2016 09:39:00 -0000 This patch set adds the vhost pmd xstats support. Patch 1 moves all stats counters to a new defined struct vhost_stats, in order to manage all stats counters in a unified way. Patch 2 adds the pmd xstats support. Changes in v3: 1. rework the vhost_update_packet_xstats and separate it into two parts. One function deals with the generic packets update, another one deals with increasing the broadcast and multicast with failure packets sent according to RFC2863 page42 ifHCOutMulticastPkts ifHCOutBroadcastPkts. 2. define enum vhost_stat_pkts to replace the magic numbers and enhance the code readability. 3. remove some unnecessary type casts and fix one format issue. Changes in v2: 1. remove the compiling switch. 2. fix two code bugs. --- Zhiyong Yang (2): net/vhost: add a new stats struct net/vhost: add pmd xstats drivers/net/vhost/rte_eth_vhost.c | 306 +++++++++++++++++++++++++++++++++++--- 1 file changed, 286 insertions(+), 20 deletions(-) -- 2.5.5