diff options
author | Bill Fischofer <bill.fischofer@linaro.org> | 2015-02-19 12:49:57 -0600 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2015-02-20 20:53:12 +0300 |
commit | a08f6bed1a6fa6eb42cc134e1d25c9d185d22278 (patch) | |
tree | 27701f87901e585aff4aa5e1965454f82e34955a /include/odp | |
parent | 5bc5e072182d802765e74a1c20586292e67668de (diff) |
api: pools: normalize odp_pool_param_t layout
Remove placeholders and standardize struct parameter layout.
Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>
Reviewed-by: Petri Savolainen <petri.savolainen@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'include/odp')
-rw-r--r-- | include/odp/api/pool.h | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/include/odp/api/pool.h b/include/odp/api/pool.h index 66dc70e06..6fe52fab3 100644 --- a/include/odp/api/pool.h +++ b/include/odp/api/pool.h @@ -49,6 +49,7 @@ extern "C" { typedef struct odp_pool_param_t { union { struct { + uint32_t num; /**< Number of buffers in the pool */ uint32_t size; /**< Buffer size in bytes. The maximum number of bytes application will store in each @@ -58,20 +59,11 @@ typedef struct odp_pool_param_t { Use 0 for default alignment. Default will always be a multiple of 8. */ - uint32_t num; /**< Number of buffers in the pool */ } buf; struct { - uint32_t seg_len; /**< Minimum number of packet data - bytes that are stored in the - first segment of a packet. - The maximum value is defined by - ODP_CONFIG_PACKET_SEG_LEN_MAX. - Use 0 for default. */ - uint32_t __res1; /* Keep struct identical to buf, - until implementation is fixed */ uint32_t num; /**< The number of packets that the pool must provide that are - packet lenght 'len' bytes or + packet length 'len' bytes or smaller. */ uint32_t len; /**< Minimum packet length that the pool must provide 'num' @@ -80,16 +72,19 @@ typedef struct odp_pool_param_t { packets are larger than 'len'. Use 0 for default. */ + uint32_t seg_len; /**< Minimum number of packet data + bytes that are stored in the + first segment of a packet. + The maximum value is defined by + ODP_CONFIG_PACKET_SEG_LEN_MAX. + Use 0 for default. */ } pkt; struct { - uint32_t __res1; /* Keep struct identical to buf, */ - uint32_t __res2; /* until pool implementation is fixed*/ uint32_t num; /**< Number of timeouts in the pool */ } tmo; }; int type; /**< Pool type */ - } odp_pool_param_t; /** Packet pool*/ |