Re: [RFC 0/3] generic sw counters

2024-05-10 Thread Stephen Hemminger
On Fri, 10 May 2024 19:29:48 +0200 Morten Brørup wrote: > ad, common functions are good. > > I'm somewhat skeptical about putting the stats structure first in the > rte_eth_dev_data's tx_queues and rx_queues. > These are void* because their types are private to the PMD. Putting the stats > str

RE: [RFC 0/3] generic sw counters

2024-05-10 Thread Morten Brørup
> From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Friday, 10 May 2024 07.01 > > This is my attempt to demonstrate: > - generic counters for SW drivers, the example does af_packet and tap > but same should be applied to af_xdp, virtio, etc. > - counters are safe against

[RFC 0/3] generic sw counters

2024-05-09 Thread Stephen Hemminger
This is my attempt to demonstrate: - generic counters for SW drivers, the example does af_packet and tap but same should be applied to af_xdp, virtio, etc. - counters are safe against 64 bit tearing on 32 bit platform The naming and organization could be improved: - should this be in rt