@@ -358,8 +358,24 @@ odp_pool_t odp_pool_lookup(const char *name);
* Used to get information about a pool.
*/
typedef struct odp_pool_info_t {
- const char *name; /**< pool name */
- odp_pool_param_t params; /**< pool parameters */
+ /** Pool name */
+ const char *name;
+
+ /** Copy of pool parameters */
+ odp_pool_param_t params;
+
+ /** Additional info for packet pools */
+ struct {
+ /** Maximum number of packets of any length
+ *
+ * This is the maximum number of packets that can be allocated
+ * from the pool at anytime. Application can use this e.g.
+ * to prepare enough per packet contexts.
+ */
+ uint32_t max_num;
+
+ } pkt;
+
} odp_pool_info_t;
/**
@@ -373,7 +389,6 @@ typedef struct odp_pool_info_t {
* @retval 0 Success
* @retval -1 Failure. Info could not be retrieved.
*/
-
int odp_pool_info(odp_pool_t pool, odp_pool_info_t *info);
/**