example/ipsec_crypto/odp_ipsec.c
static
odp_event_t polled_odp_schedule_cb(odp_queue_t *from)
{
	int idx = 0;

	while (idx < global->num_polled_queues) {
		odp_queue_t queue = global->poll_queues[idx++];
		odp_event_t ev;

		ev = odp_queue_deq(queue);

		if (ODP_EVENT_INVALID != ev) {
			*from = queue;
			return ev;
		}
	}

	*from = ODP_QUEUE_INVALID;
	return ODP_EVENT_INVALID;
}
/**
 * odp_schedule replacement to poll queues versus using ODP scheduler
 */
odp_schedule replacement to poll queues versus using ODP scheduler
odp_schedule replacement to poll queues versus using ODP scheduler
static
odp_event_t polled_odp_schedule_cb(odp_queue_t *from)
{
	int idx = 0;
	while (idx < global->num_polled_queues) {
		odp_queue_t queue = global->poll_queues[idx++];
		odp_event_t ev;
		ev = odp_queue_deq(queue);
		if (ODP_EVENT_INVALID != ev) {
			*from = queue;
			return ev;
		}
	}
	*from = ODP_QUEUE_INVALID;
	return ODP_EVENT_INVALID;
}
static odp_event_t polled_odp_schedule_cb ( odp_queue_t * from ) { int idx = 0 ; while ( idx < global -> num_polled_queues ) { odp_queue_t queue = global -> poll_queues [ idx ++ ] ; odp_event_t ev ; ev = odp_queue_deq ( queue ) ; if ( ODP_EVENT_INVALID != ev ) { * from = queue ; return ev ; } } * from = ODP_QUEUE_INVALID ; return ODP_EVENT_INVALID ; }
odp_schedule replacement to poll queues versus using ODP scheduler
odp_schedule replacement to poll queues versus using ODP scheduler