@@ -145,12 +145,14 @@ static int queue_capability(odp_queue_capability_t *capa)
memset(capa, 0, sizeof(odp_queue_capability_t));
/* Reserve some queues for internal use */
- capa->max_queues = ODP_CONFIG_QUEUES - NUM_INTERNAL_QUEUES;
- capa->max_ordered_locks = sched_fn->max_ordered_locks();
- capa->max_sched_groups = sched_fn->num_grps();
- capa->sched_prios = odp_schedule_num_prio();
- capa->plain.max_num = capa->max_queues;
- capa->sched.max_num = capa->max_queues;
+ capa->max_queues = ODP_CONFIG_QUEUES - NUM_INTERNAL_QUEUES;
+ capa->max_ordered_locks = sched_fn->max_ordered_locks();
+ capa->max_sched_groups = sched_fn->num_grps();
+ capa->sched_prios = odp_schedule_num_prio();
+ capa->plain.max_num = capa->max_queues;
+ capa->plain.blocking_level = ODP_BLOCKING;
+ capa->sched.max_num = capa->max_queues;
+ capa->sched.blocking_level = ODP_BLOCKING;
return 0;
}
@@ -601,6 +603,7 @@ static void queue_param_init(odp_queue_param_t *params)
params->type = ODP_QUEUE_TYPE_PLAIN;
params->enq_mode = ODP_QUEUE_OP_MT;
params->deq_mode = ODP_QUEUE_OP_MT;
+ params->blocking_level = ODP_BLOCKING;
params->sched.prio = ODP_SCHED_PRIO_DEFAULT;
params->sched.sync = ODP_SCHED_SYNC_PARALLEL;
params->sched.group = ODP_SCHED_GROUP_ALL;
@@ -309,14 +309,16 @@ static int queue_capability(odp_queue_capability_t *capa)
memset(capa, 0, sizeof(odp_queue_capability_t));
/* Reserve some queues for internal use */
- capa->max_queues = ODP_CONFIG_QUEUES - NUM_INTERNAL_QUEUES;
- capa->max_ordered_locks = sched_fn->max_ordered_locks();
- capa->max_sched_groups = sched_fn->num_grps();
- capa->sched_prios = odp_schedule_num_prio();
- capa->plain.max_num = ODP_CONFIG_QUEUES - NUM_INTERNAL_QUEUES;
- capa->plain.max_size = 0;
- capa->sched.max_num = ODP_CONFIG_QUEUES - NUM_INTERNAL_QUEUES;
- capa->sched.max_size = 0;
+ capa->max_queues = ODP_CONFIG_QUEUES - NUM_INTERNAL_QUEUES;
+ capa->max_ordered_locks = sched_fn->max_ordered_locks();
+ capa->max_sched_groups = sched_fn->num_grps();
+ capa->sched_prios = odp_schedule_num_prio();
+ capa->plain.max_num = ODP_CONFIG_QUEUES - NUM_INTERNAL_QUEUES;
+ capa->plain.max_size = 0;
+ capa->plain.blocking_level = ODP_BLOCKING;
+ capa->sched.max_num = ODP_CONFIG_QUEUES - NUM_INTERNAL_QUEUES;
+ capa->sched.max_size = 0;
+ capa->sched.blocking_level = ODP_BLOCKING;
return 0;
}