Skip to content

Common statistics for software PMD's

Stephen Hemminger dpdk-dev 10 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v10 Latest8 patches 0 repliesNew
  2. v98 patches 11 repliesSuperseded
  3. v88 patches 0 repliesSuperseded
Earlier versions · 7
VersionPostedPatchesRepliesStatus
v79 patches0 repliesSuperseded
v69 patches14 repliesSuperseded
v59 patches7 repliesSuperseded
v48 patches0 repliesSuperseded
v37 patches5 repliesSuperseded
v2 RFC7 patches1 replySuperseded
v1 RFC3 patches2 repliesSuperseded

Patches in v10 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8eal: generic 64 bit counterlib/eal/include/meson.build lib/eal/include/rte_counter.h+142 -00 replies
2/8ethdev: add common counters for statisticslib/ethdev/ethdev_swstats.c lib/ethdev/ethdev_swstats.h lib/ethdev/meson.build +1 more+224 -00 replies
3/8net/af_packet: use generic SW statsdrivers/net/af_packet/rte_eth_af_packet.c+17 -610 replies
4/8net/af_xdp: use generic SW statsdrivers/net/af_xdp/rte_eth_af_xdp.c+22 -630 replies
5/8net/pcap: use generic SW statsdrivers/net/pcap/pcap_ethdev.c+22 -780 replies
6/8net/ring: use generic SW statsdrivers/net/ring/rte_eth_ring.c+20 -430 replies
7/8net/tap: use generic SW statsdrivers/net/tap/rte_eth_tap.c drivers/net/tap/rte_eth_tap.h+16 -740 replies
8/8net/null: use generic SW statsdrivers/net/null/rte_eth_null.c+21 -620 replies

Reviews trailers per patch

1 of 8 patches has a Reviewed-by or Acked-by.

PatchMorten Brørup
1/8A-b
2/8
3/8
4/8
5/8
6/8
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v10 thread

Cover letter [PATCH v10 0/8] Common statistics for software PMD's

Adds common code for collecting basic statistics used by many SW based PMD's such as af_packet, af_xdp, null, tap and ring.

This version uses two counters (current and offset) to implement SMP safe reset on 64 bit platforms; this avoids having to do locked operation in the fast path. On 32 bit platforms, the compiler will split access to 64 bit variables by default; therefore it has to use std atomic.

By using common code, it also fixes missing counts in several drivers. And fixes several bugs.

v10 - can use fast 64 bit counter on all architecture except I686
- get rid of rte_read/write_once macros
- adjust #include based on iwyu

Stephen Hemminger (8):
eal: generic 64 bit counter
ethdev: add common counters for statistics
net/af_packet: use generic SW stats
net/af_xdp: use generic SW stats
net/pcap: use generic SW stats
net/ring: use generic SW stats
net/tap: use generic SW stats
net/null: use generic SW stats

 drivers/net/af_packet/rte_eth_af_packet.c |  78 +++---------
 drivers/net/af_xdp/rte_eth_af_xdp.c       |  85 ++++---------
 drivers/net/null/rte_eth_null.c           |  83 ++++---------
 drivers/net/pcap/pcap_ethdev.c            | 100 ++++-----------
 drivers/net/ring/rte_eth_ring.c           |  63 +++-------
 drivers/net/tap/rte_eth_tap.c             |  75 ++----------
 drivers/net/tap/rte_eth_tap.h             |  15 +--
 lib/eal/include/meson.build               |   1 +
 lib/eal/include/rte_counter.h             | 141 ++++++++++++++++++++++
 lib/ethdev/ethdev_swstats.c               | 102 ++++++++++++++++
 lib/ethdev/ethdev_swstats.h               | 117 ++++++++++++++++++
 lib/ethdev/meson.build                    |   2 +
 lib/ethdev/version.map                    |   3 +
 13 files changed, 484 insertions(+), 381 deletions(-)
 create mode 100644 lib/eal/include/rte_counter.h
 create mode 100644 lib/ethdev/ethdev_swstats.c
 create mode 100644 lib/ethdev/ethdev_swstats.h
Signature · 1 line
2.43.0