Common statistics for software PMD's
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v10 Latest8 patches 0 repliesNew
- v98 patches 11 repliesSuperseded
- v88 patches 0 repliesSuperseded
Earlier versions · 7
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v7 | 9 patches | 0 replies | Superseded | |
| v6 | 9 patches | 14 replies | Superseded | |
| v5 | 9 patches | 7 replies | Superseded | |
| v4 | 8 patches | 0 replies | Superseded | |
| v3 | 7 patches | 5 replies | Superseded | |
| v2 RFC | 7 patches | 1 reply | Superseded | |
| v1 RFC | 3 patches | 2 replies | Superseded |
Patches in v10 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | eal: generic 64 bit counterlib/ lib/ | +142 | 0 replies | |
| 2/8 | ethdev: add common counters for statisticslib/ lib/ lib/ +1 more | +224 | 0 replies | |
| 3/8 | net/af_packet: use generic SW statsdrivers/ | +17 | 0 replies | |
| 4/8 | net/af_xdp: use generic SW statsdrivers/ | +22 | 0 replies | |
| 5/8 | net/pcap: use generic SW statsdrivers/ | +22 | 0 replies | |
| 6/8 | net/ring: use generic SW statsdrivers/ | +20 | 0 replies | |
| 7/8 | net/tap: use generic SW statsdrivers/ drivers/ | +16 | 0 replies | |
| 8/8 | net/null: use generic SW statsdrivers/ | +21 | 0 replies |
Reviews trailers per patch
1 of 8 patches has a Reviewed-by or Acked-by.
| Patch | Morten Brørup |
|---|---|
| 1/8 | A-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.
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