diff options
author | Matias Elo <matias.elo@nokia.com> | 2023-08-08 11:02:27 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-08 11:02:27 +0300 |
commit | de97121a2e3afa072f7c51a0570f4b3bed0236c2 (patch) | |
tree | 1f34d2767951f54d11f0b9c8d48b0db04490d2c1 /include/odp/api/spec/pool_types.h | |
parent | 2b359fc1759726826cf4e2afddbd0b7e39fab4c7 (diff) | |
parent | 1200684b94bf18ae98ba63fb49e9cda546b4832a (diff) |
Merge ODP v1.41.1.0v1.41.1.0_DPDK_22.11
Merge ODP linux-generic v1.41.1.0 into linux-dpdk.
Diffstat (limited to 'include/odp/api/spec/pool_types.h')
-rw-r--r-- | include/odp/api/spec/pool_types.h | 54 |
1 files changed, 43 insertions, 11 deletions
diff --git a/include/odp/api/spec/pool_types.h b/include/odp/api/spec/pool_types.h index e9b1f9d52..cf1051a07 100644 --- a/include/odp/api/spec/pool_types.h +++ b/include/odp/api/spec/pool_types.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2021-2022, Nokia +/* Copyright (c) 2021-2023, Nokia * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause @@ -56,31 +56,31 @@ extern "C" { typedef union odp_pool_stats_opt_t { /** Option flags */ struct { - /** @see odp_pool_stats_t::available */ + /** See odp_pool_stats_t::available */ uint64_t available : 1; - /** @see odp_pool_stats_t::alloc_ops */ + /** See odp_pool_stats_t::alloc_ops */ uint64_t alloc_ops : 1; - /** @see odp_pool_stats_t::alloc_fails */ + /** See odp_pool_stats_t::alloc_fails */ uint64_t alloc_fails : 1; - /** @see odp_pool_stats_t::free_ops */ + /** See odp_pool_stats_t::free_ops */ uint64_t free_ops : 1; - /** @see odp_pool_stats_t::total_ops */ + /** See odp_pool_stats_t::total_ops */ uint64_t total_ops : 1; - /** @see odp_pool_stats_t::cache_available */ + /** See odp_pool_stats_t::cache_available */ uint64_t cache_available : 1; - /** @see odp_pool_stats_t::cache_alloc_ops */ + /** See odp_pool_stats_t::cache_alloc_ops */ uint64_t cache_alloc_ops : 1; - /** @see odp_pool_stats_t::cache_free_ops */ + /** See odp_pool_stats_t::cache_free_ops */ uint64_t cache_free_ops : 1; - /** @see odp_pool_stats_t::thread::cache_available */ + /** See odp_pool_stats_t::thread::cache_available */ uint64_t thread_cache_available : 1; } bit; @@ -148,6 +148,38 @@ typedef struct odp_pool_stats_t { } odp_pool_stats_t; /** + * Pool statistics counters + * + * Same as odp_pool_stats_t excluding per thread counters. + */ +typedef struct odp_pool_stats_selected_t { + /** See odp_pool_stats_t::available */ + uint64_t available; + + /** See odp_pool_stats_t::alloc_ops */ + uint64_t alloc_ops; + + /** See odp_pool_stats_t::alloc_fails */ + uint64_t alloc_fails; + + /** See odp_pool_stats_t::free_ops */ + uint64_t free_ops; + + /** See odp_pool_stats_t::total_ops */ + uint64_t total_ops; + + /** See odp_pool_stats_t::cache_available */ + uint64_t cache_available; + + /** See odp_pool_stats_t::cache_alloc_ops */ + uint64_t cache_alloc_ops; + + /** See odp_pool_stats_t::cache_free_ops */ + uint64_t cache_free_ops; + +} odp_pool_stats_selected_t; + +/** * Pool capabilities */ typedef struct odp_pool_capability_t { @@ -449,7 +481,7 @@ typedef struct odp_pool_param_t { /** Minimum packet data alignment in bytes. * * Valid values are powers of two. User allocated packets have - * start of data (@see odp_packet_data()) aligned to this or + * start of data (see odp_packet_data()) aligned to this or * a higher alignment (power of two value). This parameter * does not apply to packets that ODP allocates internally * (e.g. packets from packet input). |