Skip to content

Commit

Permalink
api: pool: add min and max headroom configuration in pool
Browse files Browse the repository at this point in the history
Adds minimum and maximum headroom configuration in pool

Signed-off-by: Balasubramanian Manoharan <bala.manoharan@linaro.org>
Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
  • Loading branch information
bala-manoharan authored and muvarov committed Sep 19, 2017
1 parent e344e43 commit f2da013
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions include/odp/api/spec/pool.h
Expand Up @@ -97,6 +97,13 @@ typedef struct odp_pool_capability_t {
* packet input and user allocated packets.*/
uint32_t min_headroom;

/** Maximum packet level headroom length in bytes
*
* The maximum value of packet pool headroom parameter
* that can be configured. This value applies to both ODP
* packet input and user allocated packets.*/
uint32_t max_headroom;

/** Minimum packet level tailroom length in bytes
*
* The minimum number of tailroom bytes that newly created
Expand Down Expand Up @@ -214,6 +221,13 @@ typedef struct odp_pool_param_t {
defined by pool capability pkt.max_uarea_size.
Specify as 0 if no user area is needed. */
uint32_t uarea_size;

/** Minimum Headroom size in bytes. Each newly allocated
packet from the pool must have at least this much
headroom. The maximum value is defined by pool
capability pkt.max_headroom.
Use zero if headroom is not needed. */
uint32_t headroom;
} pkt;

/** Parameters for timeout pools */
Expand Down

0 comments on commit f2da013

Please sign in to comment.