diff mbox series

[API-NEXT,v1,4/7] api: pool: add RED and BP configuration

Message ID 1509973206-1972-5-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [API-NEXT,v1,1/7] api: std_types: add odp_percent_t data type | expand

Commit Message

Github ODP bot Nov. 6, 2017, 1 p.m. UTC
From: Balasubramanian Manoharan <bala.manoharan@linaro.org>


adds random early detection and back pressure configuration to pool

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

---
/** Email created from pull request 277 (bala-manoharan:RED)
 ** https://github.com/Linaro/odp/pull/277
 ** Patch: https://github.com/Linaro/odp/pull/277.patch
 ** Base sha: d22c949cc466bf28de559855a1cb525740578137
 ** Merge commit sha: f8726f45026a85ce1dde794190c1eb35945dca3f
 **/
 include/odp/api/spec/pool.h | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
diff mbox series

Patch

diff --git a/include/odp/api/spec/pool.h b/include/odp/api/spec/pool.h
index 35f783775..beb2612e6 100644
--- a/include/odp/api/spec/pool.h
+++ b/include/odp/api/spec/pool.h
@@ -20,6 +20,8 @@  extern "C" {
 #endif
 
 #include <odp/api/std_types.h>
+#include <odp/api/support.h>
+#include <odp/api/red.h>
 
 /** @defgroup odp_pool ODP POOL
  *  Operations on a pool.
@@ -134,6 +136,19 @@  typedef struct odp_pool_capability_t {
 		 * The value of zero means that limited only by the available
 		 * memory size for the pool. */
 		uint32_t max_uarea_size;
+
+		/** Support for Random Early Detection */
+		odp_support_t random_early_detection;
+
+		/** Supported threshold type for RED */
+		odp_threshold_type_t threshold_red;
+
+		/** Support for Back Pressure to the remote peer */
+		odp_support_t back_pressure;
+
+		/** Supported threshold type for BP */
+		odp_threshold_type_t threshold_bp;
+
 	} pkt;
 
 	/** Timeout pool capabilities  */
@@ -228,6 +243,12 @@  typedef struct odp_pool_param_t {
 			    capability pkt.max_headroom.
 			    Use zero if headroom is not needed. */
 			uint32_t headroom;
+
+			/* Random Early Detection configuration */
+			odp_red_param_t red;
+
+			/* Back Pressure configuration */
+			odp_bp_param_t bp;
 		} pkt;
 
 		/** Parameters for timeout pools */