diff mbox series

[API-NEXT,v2,1/2] api: pktio: extend odp_pktin_queue_param_t to support per queue configuration

Message ID 1533891612-393-2-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [API-NEXT,v2,1/2] api: pktio: extend odp_pktin_queue_param_t to support per queue configuration | expand

Commit Message

Github ODP bot Aug. 10, 2018, 9 a.m. UTC
From: Bogdan Pricope <bogdan.pricope@linaro.org>


Per queue configuration enables advanced usecases where input queues
of the same interface may belong to different scheduler groups.

Signed-off-by: Bogdan Pricope <bogdan.pricope@linaro.org>

---
/** Email created from pull request 660 (bogdanPricope:api_next_pktin_queue_pr)
 ** https://github.com/Linaro/odp/pull/660
 ** Patch: https://github.com/Linaro/odp/pull/660.patch
 ** Base sha: 9b2b5a9695ad66977c964c83691cd2fef4c45b85
 ** Merge commit sha: b7a150ea4e9fe568e77d603f637ddb968838aec6
 **/
 include/odp/api/spec/packet_io.h | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
diff mbox series

Patch

diff --git a/include/odp/api/spec/packet_io.h b/include/odp/api/spec/packet_io.h
index a55c2678f..5d602c895 100644
--- a/include/odp/api/spec/packet_io.h
+++ b/include/odp/api/spec/packet_io.h
@@ -148,6 +148,17 @@  typedef enum odp_pktio_op_mode_t {
 
 } odp_pktio_op_mode_t;
 
+/**
+ * Packet input queue parameters override
+ */
+typedef struct odp_pktin_queue_param_ovr_t {
+	/** Thread group
+	  *
+	  * This parameter is considered only when queue type is
+	  * ODP_QUEUE_TYPE_SCHED. */
+	odp_schedule_group_t group;
+} odp_pktin_queue_param_ovr_t;
+
 /**
  * Packet input queue parameters
  */
@@ -203,6 +214,13 @@  typedef struct odp_pktin_queue_param_t {
 	  * value is ignored. */
 	odp_queue_param_t queue_param;
 
+	/** Queue parameters override
+	  *
+	  * Overrides queue_param with per queue values. Must point to
+	  * an array of num_queues elements or set to NULL to disable
+	  * queue parameters override. The default value is NULL.
+	  */
+	odp_pktin_queue_param_ovr_t *queue_param_ovr;
 } odp_pktin_queue_param_t;
 
 /**