From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0826BA046B for ; Thu, 27 Jun 2019 00:21:46 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9B4272B98; Thu, 27 Jun 2019 00:21:45 +0200 (CEST) Received: from mail-pl1-f195.google.com (mail-pl1-f195.google.com [209.85.214.195]) by dpdk.org (Postfix) with ESMTP id F153C2B82 for ; Thu, 27 Jun 2019 00:21:44 +0200 (CEST) Received: by mail-pl1-f195.google.com with SMTP id e5so86369pls.13 for ; Wed, 26 Jun 2019 15:21:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=2MW07T4FfbeyPBAbQc5csRmMRe07OWWF3DTzdQNgX5c=; b=rcYxdt9z6WhymXfxcfQsu33AgTuPA8iMdnM5X5FelxJFZpZIv85a1pRM9xFHRlpKi3 c2p5f8LpzTYscUM6IJZnAXDQP4Uw1eOjSWrNmeUfiZj4kxKwoh38vvklmWJ18unTtAOM xZIQaLSRAHJpFWGpp4PAEllenH5jNLUIXLlHBmzdn9xjZKk+ocxDbHg6VIEy2NToX9JF AeE6NXBbh00XWrCgggrC8Ra1SbdyOJt1jONIIcDvjC1DbAt6pVGh6T8BVKxKqGklTteA ycTAboaTCtNCOReCkaKqZkYfhWZScRipfKMOGtzWzSUlGdfIhci+7G8OasCYYapbr3kc XQfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=2MW07T4FfbeyPBAbQc5csRmMRe07OWWF3DTzdQNgX5c=; b=uD3F0uz1QaBcS4q6/0bqVA+3dlYVwCkRJ9DqaSQXLl+dm0H+O2rlb+QAl+AJJtpStU YsIpZdxiYZdVLs86FUeE3BTjUcMYcPcTmc41hLAcTSV3dnGOn2Jw0DtARP6LSu8xd7o0 6vLjlfLjpqMniKb+YBYqCfL8yQq5Y6EmBzTqOMgXHyvkWI1P6axAsMdRWxj383spm2Hn VRHTAlbWzGPKcnQmfiueJhFA0twTBDurzz4o2otp0mSJW/SBaFA72eXf9rwZ2L/hwsQY KNLHyGyBmDV3FayhRWGyAeEvsJ5l6FtybciDW4UmfrkjL2OJTs1oh4dASuRZPuDEJYep gkYQ== X-Gm-Message-State: APjAAAXoqF6EqwKNo3bw6mDoFTJ8VOuKF/STh46DVXLed2fGFY1iFivr J+U4n3Pgu0UlDuEH1rXRCp/v7hqXed4= X-Google-Smtp-Source: APXvYqy4p2wJU+tTrLxWL8nCccP63dRInVOfI9muyvjI41ukHL55M593i9mk4Wlby3GJXx6d7PdfPg== X-Received: by 2002:a17:902:2006:: with SMTP id n6mr495640pla.232.1561587703963; Wed, 26 Jun 2019 15:21:43 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id d5sm266114pfn.25.2019.06.26.15.21.42 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 26 Jun 2019 15:21:43 -0700 (PDT) From: Stephen Hemminger To: gaetan.rivet@6wind.com Cc: dev@dpdk.org, Stephen Hemminger Date: Wed, 26 Jun 2019 15:21:33 -0700 Message-Id: <20190626222135.11368-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 0/2] failsafe: add xstats X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" A useful feature of netvsc PMD is the ability to see how many packets were processed through the VF device. This patch set adds a similar (but more limited) capability to failsafe driver. Since failsafe doesn't have top level xstats, this set uses the generic xstats that exist already as a base then adds the sub-device xstats to that. Stephen Hemminger (2): ethdev: expose basic xstats for driver use failsafe: implement xstats drivers/net/failsafe/failsafe_ops.c | 144 +++++++++++++++++++++++ lib/librte_ethdev/rte_ethdev.c | 17 ++- lib/librte_ethdev/rte_ethdev_core.h | 14 +++ lib/librte_ethdev/rte_ethdev_version.map | 3 + 4 files changed, 169 insertions(+), 9 deletions(-) -- 2.20.1