Lines Matching defs:counters
166 /* This struct groups all the SRv6 Behavior counters supported so far.
1983 /* basic support for SRv6 Behavior counters requires at least:
1990 /* counters are always zero initialized */
2001 struct seg6_local_counters *counters)
2003 if (nla_put_u64_64bit(skb, SEG6_LOCAL_CNT_PACKETS, counters->packets,
2007 if (nla_put_u64_64bit(skb, SEG6_LOCAL_CNT_BYTES, counters->bytes,
2011 if (nla_put_u64_64bit(skb, SEG6_LOCAL_CNT_ERRORS, counters->errors,
2020 struct seg6_local_counters counters = { 0, 0, 0 };
2043 counters.packets += packets;
2044 counters.bytes += bytes;
2045 counters.errors += errors;
2048 rc = seg6_local_fill_nla_counters(skb, &counters);