[PATCH v4 0/8] Generic 64 bit counters for SW PMD's
Stephen Hemminger
stephen at networkplumber.org
Thu May 16 01:40:52 CEST 2024
Adds common code for collecting basic statistics used by many
SW based PMD's such as af_packet, af_xdp, null, tap and ring.
Solves the problem where counters could tear because of
32 bit load/store on 32 bit platforms.
v4 - cleanup the comments
- handle null pmd as well
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 | 82 +++-----------
drivers/net/af_xdp/rte_eth_af_xdp.c | 98 +++++------------
drivers/net/null/rte_eth_null.c | 80 +++-----------
drivers/net/pcap/pcap_ethdev.c | 125 +++++-----------------
drivers/net/ring/rte_eth_ring.c | 71 +++++-------
drivers/net/tap/rte_eth_tap.c | 88 +++------------
drivers/net/tap/rte_eth_tap.h | 15 +--
lib/eal/include/meson.build | 1 +
lib/eal/include/rte_counter.h | 91 ++++++++++++++++
lib/ethdev/ethdev_swstats.c | 109 +++++++++++++++++++
lib/ethdev/ethdev_swstats.h | 124 +++++++++++++++++++++
lib/ethdev/meson.build | 2 +
lib/ethdev/version.map | 3 +
13 files changed, 458 insertions(+), 431 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
--
2.43.0
More information about the dev
mailing list