diff options
author | Matias Elo <matias.elo@nokia.com> | 2021-07-21 11:46:40 +0300 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2021-07-21 15:15:57 +0300 |
commit | 7d184c6ef1d343e10c487d15aba88d5f82cbea3b (patch) | |
tree | b3ca84c8223728c05df9ed01ac2ac8fd2f89e692 | |
parent | d0e4ddec0ab27d92e773f7061692167db6443b6b (diff) |
api: packet: move odp_packet_proto_stats_opt_t definition
Packet type definitions belong to packet_types.h header.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
-rw-r--r-- | include/odp/api/spec/packet.h | 17 | ||||
-rw-r--r-- | include/odp/api/spec/packet_types.h | 18 |
2 files changed, 18 insertions, 17 deletions
diff --git a/include/odp/api/spec/packet.h b/include/odp/api/spec/packet.h index 0fa57896f..6d7711c86 100644 --- a/include/odp/api/spec/packet.h +++ b/include/odp/api/spec/packet.h @@ -2032,23 +2032,6 @@ int odp_packet_tx_compl_request(odp_packet_t pkt, const odp_packet_tx_compl_opt_ int odp_packet_has_tx_compl_request(odp_packet_t pkt); /** - * Packet proto stats options. - */ -typedef struct odp_packet_proto_stats_opt_t { - /** Packet proto stats object handle - * - * Stats in the packet proto stats object will be updated. - */ - odp_proto_stats_t stat; - - /** Octet counter 0 adjust */ - int32_t oct_count0_adj; - - /** Octet counter 1 adjust */ - int32_t oct_count1_adj; -} odp_packet_proto_stats_opt_t; - -/** * Request packet proto stats. * * The statistics enabled in the proto stats object are updated for the packet in diff --git a/include/odp/api/spec/packet_types.h b/include/odp/api/spec/packet_types.h index 52409d96a..d5ff39ac7 100644 --- a/include/odp/api/spec/packet_types.h +++ b/include/odp/api/spec/packet_types.h @@ -19,6 +19,7 @@ extern "C" { #endif +#include <odp/api/proto_stats.h> #include <odp/api/queue_types.h> /** @addtogroup odp_packet @@ -437,6 +438,23 @@ typedef struct odp_packet_tx_compl_opt_t { } odp_packet_tx_compl_opt_t; /** + * Packet proto stats options + */ +typedef struct odp_packet_proto_stats_opt_t { + /** Packet proto stats object handle + * + * Stats in the packet proto stats object will be updated. + */ + odp_proto_stats_t stat; + + /** Octet counter 0 adjust */ + int32_t oct_count0_adj; + + /** Octet counter 1 adjust */ + int32_t oct_count1_adj; +} odp_packet_proto_stats_opt_t; + +/** * @} */ |