From patchwork Wed Jul 3 17:25:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 56047 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C6D771E25; Wed, 3 Jul 2019 19:25:21 +0200 (CEST) Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) by dpdk.org (Postfix) with ESMTP id 552171D9E for ; Wed, 3 Jul 2019 19:25:20 +0200 (CEST) Received: by mail-pg1-f177.google.com with SMTP id w10so1573957pgj.7 for ; Wed, 03 Jul 2019 10:25:20 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=/6iHnoNE5iqC2jn627MQaiV1ogKrR9RXxLfvkDlVn5c=; b=dqH+Es68X37IWoEO/jtDcjDn90+EPAVJjvAJZZMtiqPf5zHzAiaw/Da0SRFkal0s35 X2UWXHsxow6qg7buARu8GKE+Bm4AiJ9ckWSM4J/kv7+eAPDB0cEEp1RWsxco4FTEBVbM tJ3N1c/XjBv6v5vo2f77iTlP8HgqOCN+oXcigVoWjAycQPeq4xWzAhtaIPXVORyxb9F2 21qSI/H1d1YkiuOnrBN9adzqXtjqu7PfQXGKPXcFUHhKH+BIC2B8Yv5ygPquJHpDfebo LpptKFEh6NPu7dONwIZvUVMfFQAXWOITzaZSrBUK9PiM45mXvAIKHAxUQ0PcJ6vGN1o2 QaHw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=/6iHnoNE5iqC2jn627MQaiV1ogKrR9RXxLfvkDlVn5c=; b=Uio+GmokfPqaJWwzYcgXYZd5kkG/9rtjpEtlnqkSKSWtl4sX4JzubghznFT600uizp fx31FKJ8wK2ChUPo4xsnbFa0NsLUDfDNUzAMAw2o3sO4uBPdw6z2OEgvaRSDiUNtknqg Xm7Jhiv6kNxDGVZ4/kbLk462XA9CpHk0Zv2yGWRFrxx9DHSUbv7kWxMWu/aoxwGg9mF+ OjwraAZl80nGvQU2lVZ+VfsvcG9vnjQp/09N6KVEVKYGp/b9pXKm429vgx645OJURa6K iokHOQkc4lyfc98eJKV4phFtBlt2rHJ/ZVRt+cmGlQL7ff6g4VQn4To495Djqhj/vzVN RPlg== X-Gm-Message-State: APjAAAXJWRmQyyhR0YGQmuopAU1NA6fz90kHE2XduJsR+LwwXZNWgBpW nNzEcibonX9HEetyMWvd8EMb7/x8iWI= X-Google-Smtp-Source: APXvYqy0aueJSeZoGPJeEJ3JIeiW0jaHxkhVbij9MX1Sn2oAI5YiPyfjmLHlFRqQMtI2j4eWQmNhNw== X-Received: by 2002:a65:43cd:: with SMTP id n13mr39467653pgp.208.1562174719336; Wed, 03 Jul 2019 10:25:19 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id j11sm4468831pfa.2.2019.07.03.10.25.18 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 03 Jul 2019 10:25:18 -0700 (PDT) From: Stephen Hemminger To: gaetan.rivet@6wind.com, arybchenko@solarflare.com Cc: dev@dpdk.org, Stephen Hemminger Date: Wed, 3 Jul 2019 10:25:10 -0700 Message-Id: <20190703172512.24909-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190626222135.11368-1-stephen@networkplumber.org> References: <20190626222135.11368-1-stephen@networkplumber.org> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v2 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. v2 move generic xstats helpers to rte_ethdev_driver.h change prefix on subdevice stats to sub0_XXXX Stephen Hemminger (2): ethdev: expose basic xstats for driver use failsafe: implement xstats drivers/net/failsafe/failsafe_ops.c | 135 +++++++++++++++++++++++ lib/librte_ethdev/rte_ethdev.c | 17 ++- lib/librte_ethdev/rte_ethdev_driver.h | 65 +++++++++++ lib/librte_ethdev/rte_ethdev_version.map | 3 + 4 files changed, 211 insertions(+), 9 deletions(-) Acked-by: Gaetan Rivet