diff mbox

[3/4] api: pools: normalize odp_pool_param_t layout

Message ID 1423859705-9626-1-git-send-email-bill.fischofer@linaro.org
State New
Headers show

Commit Message

Bill Fischofer Feb. 13, 2015, 8:35 p.m. UTC
Remove placeholders and standardize struct parameter layout.

Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>
---
 include/odp/api/pool.h | 20 ++++++++------------
 1 file changed, 8 insertions(+), 12 deletions(-)
diff mbox

Patch

diff --git a/include/odp/api/pool.h b/include/odp/api/pool.h
index 66dc70e..981aee8 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,10 +72,14 @@  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;
 	};