Hi Christian,

> There are some error counters that aren't errors, then there are statistic 
> counters.
> 
> I'm curious did one come before the other? I ask b/c some nodes count 
> non-error statistics using errors (e.g., arp, ipsec, ...) and I'm wondering 
> why.

The node errors as implemented in src/vlib/error.[ch] came first.
The stats segment is just a representation of these per-node counters. The 
stats segment is essentially a KV store,
where the node counters are given a key as 
"/err/<node-name>/<error-counter-name>

You are absoultely right that some nodes do use this counter infrastructure for 
non-error situations.
e.g. we have "no error", "encapsulated", "decapsulated" by some nodes and so on.
I at some point was thinking of placing these under a different path. Then I 
distracted myself by thinking of how all the counters could be represented in a 
data model instead (specifically a YANG tree).

Cheers,
Ole
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#15051): https://lists.fd.io/g/vpp-dev/message/15051
Mute This Topic: https://lists.fd.io/mt/69440602/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to