diff mbox series

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

Message ID 1509973206-1972-6-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 queue

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/queue.h | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
diff mbox series

Patch

diff --git a/include/odp/api/spec/queue.h b/include/odp/api/spec/queue.h
index 73598be06..504720e8d 100644
--- a/include/odp/api/spec/queue.h
+++ b/include/odp/api/spec/queue.h
@@ -21,6 +21,8 @@  extern "C" {
 
 #include <odp/api/schedule_types.h>
 #include <odp/api/event.h>
+#include <odp/api/support.h>
+#include <odp/api/red.h>
 
 /** @defgroup odp_queue ODP QUEUE
  *  Macros and operation on a queue.
@@ -114,6 +116,18 @@  typedef struct odp_queue_capability_t {
 	/** Number of scheduling priorities */
 	unsigned sched_prios;
 
+	/** Support for Random Early Detection */
+	odp_support_t random_early_detection;
+
+	/** Supported threshold types for RED */
+	odp_threshold_type_t threshold_red;
+
+	/** Support for Back Pressure to the remote peer */
+	odp_support_t back_pressure;
+
+	/** Supported threshold types for BP */
+	odp_threshold_type_t threshold_bp;
+
 	/** Plain queue capabilities */
 	struct {
 		/** Maximum number of plain queues of the default size. */
@@ -202,6 +216,11 @@  typedef struct odp_queue_param_t {
 	  * default size. */
 	uint32_t size;
 
+	/* Random early detection configuration */
+	odp_red_param_t red;
+
+	/* Back Pressure configuration */
+	odp_bp_param_t bp;
 } odp_queue_param_t;
 
 /**