diff mbox series

[API-NEXT,v8,1/2] api: pool: add min and max headroom in capability

Message ID 1505462413-12117-2-git-send-email-odpbot@yandex.ru
State Superseded
Headers show
Series [API-NEXT,v8,1/2] api: pool: add min and max headroom in capability | expand

Commit Message

Github ODP bot Sept. 15, 2017, 8 a.m. UTC
From: Balasubramanian Manoharan <bala.manoharan@linaro.org>


Adds pool minimum and maximum headroom in pool capability

Signed-off-by: Balasubramanian Manoharan <bala.manoharan@linaro.org>

---
/** Email created from pull request 152 (bala-manoharan:pool_headroom)
 ** https://github.com/Linaro/odp/pull/152
 ** Patch: https://github.com/Linaro/odp/pull/152.patch
 ** Base sha: 6b6253c30f88c80bf632436ff06c1b000860a2f1
 ** Merge commit sha: 588243e91beb902b34b89a79b78edd4d2e7bd23e
 **/
 include/odp/api/spec/pool.h | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
diff mbox series

Patch

diff --git a/include/odp/api/spec/pool.h b/include/odp/api/spec/pool.h
index 6fc5b6b4a..e17bd5e05 100644
--- a/include/odp/api/spec/pool.h
+++ b/include/odp/api/spec/pool.h
@@ -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 'min_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
@@ -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 min_headroom;
 		} pkt;
 
 		/** Parameters for timeout pools */