@@ -211,7 +211,7 @@ static odp_pktio_t create_pktio(const char *dev, odp_pool_t pool)
qparam.sched.prio = ODP_SCHED_PRIO_DEFAULT;
qparam.sched.sync = ODP_SCHED_SYNC_ATOMIC;
- qparam.sched.group = ODP_SCHED_GROUP_DEFAULT;
+ qparam.sched.group = ODP_SCHED_GROUP_ALL;
snprintf(inq_name, sizeof(inq_name), "%" PRIu64 "-pktio_inq_def",
odp_pktio_to_u64(pktio));
inq_name[ODP_QUEUE_NAME_LEN - 1] = '\0';
@@ -342,7 +342,7 @@ static odp_pktio_t create_pktio(const char *dev, odp_pool_t pool)
*/
qparam.sched.prio = ODP_SCHED_PRIO_DEFAULT;
qparam.sched.sync = ODP_SCHED_SYNC_ATOMIC;
- qparam.sched.group = ODP_SCHED_GROUP_DEFAULT;
+ qparam.sched.group = ODP_SCHED_GROUP_ALL;
snprintf(inq_name, sizeof(inq_name), "%" PRIu64 "-pktio_inq_def",
odp_pktio_to_u64(pktio));
inq_name[ODP_QUEUE_NAME_LEN - 1] = '\0';
@@ -325,7 +325,7 @@ void ipsec_init_pre(void)
*/
qparam.sched.prio = ODP_SCHED_PRIO_HIGHEST;
qparam.sched.sync = ODP_SCHED_SYNC_ATOMIC;
- qparam.sched.group = ODP_SCHED_GROUP_DEFAULT;
+ qparam.sched.group = ODP_SCHED_GROUP_ALL;
completionq = queue_create("completion",
ODP_QUEUE_TYPE_SCHED,
@@ -337,7 +337,7 @@ void ipsec_init_pre(void)
qparam.sched.prio = ODP_SCHED_PRIO_HIGHEST;
qparam.sched.sync = ODP_SCHED_SYNC_ATOMIC;
- qparam.sched.group = ODP_SCHED_GROUP_DEFAULT;
+ qparam.sched.group = ODP_SCHED_GROUP_ALL;
seqnumq = queue_create("seqnum",
ODP_QUEUE_TYPE_SCHED,
@@ -450,7 +450,7 @@ void initialize_loop(char *intf)
/* Create input queue */
qparam.sched.prio = ODP_SCHED_PRIO_DEFAULT;
qparam.sched.sync = ODP_SCHED_SYNC_ATOMIC;
- qparam.sched.group = ODP_SCHED_GROUP_DEFAULT;
+ qparam.sched.group = ODP_SCHED_GROUP_ALL;
snprintf(queue_name, sizeof(queue_name), "%i-loop_inq_def", idx);
queue_name[ODP_QUEUE_NAME_LEN - 1] = '\0';
@@ -463,7 +463,7 @@ void initialize_loop(char *intf)
/* Create output queue */
qparam.sched.prio = ODP_SCHED_PRIO_DEFAULT;
qparam.sched.sync = ODP_SCHED_SYNC_ATOMIC;
- qparam.sched.group = ODP_SCHED_GROUP_DEFAULT;
+ qparam.sched.group = ODP_SCHED_GROUP_ALL;
snprintf(queue_name, sizeof(queue_name), "%i-loop_outq_def", idx);
queue_name[ODP_QUEUE_NAME_LEN - 1] = '\0';
@@ -535,7 +535,7 @@ void initialize_intf(char *intf)
*/
qparam.sched.prio = ODP_SCHED_PRIO_DEFAULT;
qparam.sched.sync = ODP_SCHED_SYNC_ATOMIC;
- qparam.sched.group = ODP_SCHED_GROUP_DEFAULT;
+ qparam.sched.group = ODP_SCHED_GROUP_ALL;
snprintf(inq_name, sizeof(inq_name), "%" PRIu64 "-pktio_inq_def",
odp_pktio_to_u64(pktio));
inq_name[ODP_QUEUE_NAME_LEN - 1] = '\0';
@@ -154,7 +154,7 @@ static odp_pktio_t create_pktio(const char *dev, odp_pool_t pool, int mode)
case APPL_MODE_PKT_SCHED:
qparam.sched.prio = ODP_SCHED_PRIO_DEFAULT;
qparam.sched.sync = ODP_SCHED_SYNC_ATOMIC;
- qparam.sched.group = ODP_SCHED_GROUP_DEFAULT;
+ qparam.sched.group = ODP_SCHED_GROUP_ALL;
inq_def = odp_queue_create(inq_name,
ODP_QUEUE_TYPE_PKTIN, &qparam);
@@ -428,7 +428,7 @@ int main(int argc, char *argv[])
memset(¶m, 0, sizeof(param));
param.sched.prio = ODP_SCHED_PRIO_DEFAULT;
param.sched.sync = ODP_SCHED_SYNC_NONE;
- param.sched.group = ODP_SCHED_GROUP_DEFAULT;
+ param.sched.group = ODP_SCHED_GROUP_ALL;
queue = odp_queue_create("timer_queue", ODP_QUEUE_TYPE_SCHED, ¶m);
@@ -145,12 +145,9 @@ extern "C" {
/**
* @def ODP_SCHED_GROUP_ALL
- * Group of all cores
- */
-
-/**
- * @def ODP_SCHED_GROUP_DEFAULT
- * Default core group
+ * Group of all threads. All active worker and control threads belong to this
+ * group. The group is automatically updated when new threads enter or old
+ * threads exit ODP.
*/
/**
@@ -62,8 +62,6 @@ typedef int odp_schedule_group_t;
#define ODP_SCHED_GROUP_ALL 0
-#define ODP_SCHED_GROUP_DEFAULT ODP_SCHED_GROUP_ALL
-
/** Get printable format of odp_queue_t */
static inline uint64_t odp_queue_to_u64(odp_queue_t hdl)
{
@@ -62,7 +62,7 @@ static void queue_init(queue_entry_t *queue, const char *name,
memset(&queue->s.param, 0, sizeof(odp_queue_param_t));
queue->s.param.sched.prio = ODP_SCHED_PRIO_DEFAULT;
queue->s.param.sched.sync = ODP_SCHED_SYNC_ATOMIC;
- queue->s.param.sched.group = ODP_SCHED_GROUP_DEFAULT;
+ queue->s.param.sched.group = ODP_SCHED_GROUP_ALL;
}
switch (type) {
@@ -294,7 +294,7 @@ static odp_pktio_t create_pktio(const char *dev, odp_pool_t pool,
qparam.sched.prio = ODP_SCHED_PRIO_DEFAULT;
qparam.sched.sync = ODP_SCHED_SYNC_ATOMIC;
- qparam.sched.group = ODP_SCHED_GROUP_DEFAULT;
+ qparam.sched.group = ODP_SCHED_GROUP_ALL;
snprintf(inq_name, sizeof(inq_name), "%" PRIu64 "-pktio_inq_def",
odp_pktio_to_u64(pktio));
inq_name[ODP_QUEUE_NAME_LEN - 1] = '\0';
@@ -747,7 +747,7 @@ static int test_init(void)
/* create and associate an input queue for the RX side */
qparam.sched.prio = ODP_SCHED_PRIO_DEFAULT;
qparam.sched.sync = ODP_SCHED_SYNC_NONE;
- qparam.sched.group = ODP_SCHED_GROUP_DEFAULT;
+ qparam.sched.group = ODP_SCHED_GROUP_ALL;
snprintf(inq_name, sizeof(inq_name), "inq-pktio-%" PRIu64,
odp_pktio_to_u64(gbl_args->pktio_rx));
@@ -956,7 +956,7 @@ int main(int argc, char *argv[])
param.sched.prio = i;
param.sched.sync = ODP_SCHED_SYNC_ATOMIC;
- param.sched.group = ODP_SCHED_GROUP_DEFAULT;
+ param.sched.group = ODP_SCHED_GROUP_ALL;
for (j = 0; j < QUEUES_PER_PRIO; j++) {
name[9] = '0' + j/10;
@@ -307,7 +307,7 @@ int classification_suite_init(void)
}
qparam.sched.prio = ODP_SCHED_PRIO_DEFAULT;
qparam.sched.sync = ODP_SCHED_SYNC_ATOMIC;
- qparam.sched.group = ODP_SCHED_GROUP_DEFAULT;
+ qparam.sched.group = ODP_SCHED_GROUP_ALL;
sprintf(queuename, "%s", "inq_loop");
inq_def = odp_queue_create(queuename,
@@ -251,7 +251,7 @@ static int create_inq(odp_pktio_t pktio, odp_queue_type_t qtype)
qparam.sched.prio = ODP_SCHED_PRIO_DEFAULT;
qparam.sched.sync = ODP_SCHED_SYNC_ATOMIC;
- qparam.sched.group = ODP_SCHED_GROUP_DEFAULT;
+ qparam.sched.group = ODP_SCHED_GROUP_ALL;
snprintf(inq_name, sizeof(inq_name), "inq-pktio-%" PRIu64,
odp_pktio_to_u64(pktio));
@@ -123,7 +123,6 @@ static void scheduler_test_queue_destroy(void)
for (i = 0; i < 3; i++) {
qp.sched.prio = ODP_SCHED_PRIO_DEFAULT;
- qp.sched.group = ODP_SCHED_GROUP_DEFAULT;
qp.sched.sync = sync[i];
queue = odp_queue_create("sched_destroy_queue",
@@ -623,7 +622,6 @@ static int create_queues(void)
for (i = 0; i < prios; i++) {
odp_queue_param_t p;
p.sched.prio = i;
- p.sched.group = ODP_SCHED_GROUP_DEFAULT;
for (j = 0; j < QUEUES_PER_PRIO; j++) {
/* Per sched sync type */