API Reference Manual  1.45.1
api/spec/proto_stats_types.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright (c) 2021 Marvell
3  * Copyright (c) 2021 Nokia
4  */
5 
12 #ifndef ODP_API_SPEC_PROTO_STATS_TYPES_H_
13 #define ODP_API_SPEC_PROTO_STATS_TYPES_H_
14 #include <odp/visibility_begin.h>
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
20 #include <odp/api/std_types.h>
21 
53  struct {
55  uint64_t tx_pkts : 1;
56 
58  uint64_t tx_pkt_drops : 1;
59 
61  uint64_t tx_oct_count0 : 1;
62 
64  uint64_t tx_oct_count0_drops : 1;
65 
67  uint64_t tx_oct_count1 : 1;
68 
70  uint64_t tx_oct_count1_drops : 1;
71  } bit;
72 
78  uint64_t all_bits;
80 
82 typedef struct odp_proto_stats_param_t {
86 
92  struct {
95 
98 
101  } tx;
103 
105 typedef struct odp_proto_stats_data_t {
107  uint64_t tx_pkts;
108 
110  uint64_t tx_pkt_drops;
111 
113  uint64_t tx_oct_count0;
114 
117 
119  uint64_t tx_oct_count1;
120 
124 
129 #ifdef __cplusplus
130 }
131 #endif
132 
133 #include <odp/visibility_end.h>
134 #endif
Standard C language types and definitions for ODP.
struct odp_proto_stats_data_t odp_proto_stats_data_t
ODP proto stats counters.
struct odp_proto_stats_param_t odp_proto_stats_param_t
ODP proto stats params.
struct odp_proto_stats_capability_t odp_proto_stats_capability_t
Proto stats capabilities.
union odp_proto_stats_counters_t odp_proto_stats_counters_t
ODP proto stats counters.
bool odp_bool_t
Boolean type.
odp_proto_stats_counters_t counters
Stats counters supported.
struct odp_proto_stats_capability_t::@136 tx
Tx capabilities.
odp_bool_t oct_count1_adj
Packet adjust support for Octet counter 1.
odp_bool_t oct_count0_adj
Packet adjust support for Octet counter 0.
ODP proto stats counters.
uint64_t tx_oct_count0
Packet sent Octet counter 0.
uint64_t tx_oct_count1
Packet sent octet counter 1.
uint64_t tx_pkts
Packet sent count.
uint64_t tx_oct_count1_drops
Packet drop octet counter 1.
uint64_t tx_oct_count0_drops
Packet drop Octet counter 0.
uint64_t tx_pkt_drops
Packet drop count.
odp_proto_stats_counters_t counters
Stats counters to enable.
uint64_t all_bits
All bits of the bit field structure.
uint64_t tx_pkt_drops
Tx packet drop count.
uint64_t tx_oct_count0
Tx packet sent Octet counter 0.
uint64_t tx_oct_count1
Tx packet sent octet counter 1.
uint64_t tx_oct_count0_drops
Tx packet drop Octet counter 0.
struct odp_proto_stats_counters_t::@135 bit
Option flags.
uint64_t tx_pkts
Tx packet sent count.
uint64_t tx_oct_count1_drops
Tx packet drop octet counter 1.