Completed odp_pool_param_t definition with packet pool parameters. Parameter definition is close to what we are using already. Segment min length, segment min alignment and number of segments.
Signed-off-by: Petri Savolainen <[email protected]> --- include/odp/api/pool.h | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/include/odp/api/pool.h b/include/odp/api/pool.h index 1582102..e407704 100644 --- a/include/odp/api/pool.h +++ b/include/odp/api/pool.h @@ -61,13 +61,23 @@ typedef struct odp_pool_param_t { of 8. */ uint32_t num; /**< Number of buffers in the pool */ } buf; -/* Reserved for packet and timeout specific params struct { - uint32_t seg_size; - uint32_t seg_align; - uint32_t num; + uint32_t seg_len; /**< Minimum packet segment buffer + length in bytes. It includes + possible head-/tailroom bytes. + Use 0 for default length. */ + uint32_t seg_align; /**< Minimum packet segment buffer + alignment in bytes. Valid + values are powers of two. Use 0 + for default alignment. Default + will always be a multiple of 8. + */ + uint32_t seg_num; /**< Number of packet segments in + the pool. It's also the maximum + number of packets, since each + packet consist of at least one + segment. */ } pkt; -*/ struct { uint32_t __res1; /* Keep struct identical to buf, */ uint32_t __res2; /* until pool implementation is fixed*/ -- 2.2.2 _______________________________________________ lng-odp mailing list [email protected] http://lists.linaro.org/mailman/listinfo/lng-odp
