From 4eb6dea6009a6526c1c031071cf1c0443b07d918 Mon Sep 17 00:00:00 2001 From: Petri Savolainen Date: Wed, 16 Dec 2015 15:45:39 +0200 Subject: linux-generic: pktio: added scheduler multi-queue support Added support for new multi-queue pktio API for scheduled queues. Signed-off-by: Petri Savolainen Reviewed-by: Zoltan Kiss Reviewed-and-tested-by: Bill Fischofer Signed-off-by: Maxim Uvarov --- platform/linux-generic/include/odp_schedule_internal.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'platform/linux-generic/include/odp_schedule_internal.h') diff --git a/platform/linux-generic/include/odp_schedule_internal.h b/platform/linux-generic/include/odp_schedule_internal.h index 6b301cd18..78e16c4e6 100644 --- a/platform/linux-generic/include/odp_schedule_internal.h +++ b/platform/linux-generic/include/odp_schedule_internal.h @@ -23,7 +23,8 @@ extern "C" { int schedule_queue_init(queue_entry_t *qe); void schedule_queue_destroy(queue_entry_t *qe); int schedule_queue(const queue_entry_t *qe); -int schedule_pktio_start(odp_pktio_t pktio, int prio); +void schedule_pktio_start(odp_pktio_t pktio, int num_in_queue, + int in_queue_idx[], int prio); void odp_schedule_release_context(void); #ifdef __cplusplus -- cgit v1.2.3 From 40ee0058534358fe4fd33e16a8b2c07ba49d7fef Mon Sep 17 00:00:00 2001 From: Petri Savolainen Date: Wed, 16 Dec 2015 15:45:43 +0200 Subject: linux-generic: scheduler: improve pktio polling Separate packet input polling from event scheduling. A thread polls packet input only when there are no events. Packet input queue index is included into poll command queue selection. Signed-off-by: Petri Savolainen Reviewed-by: Zoltan Kiss Reviewed-and-tested-by: Bill Fischofer Signed-off-by: Maxim Uvarov --- platform/linux-generic/include/odp_schedule_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'platform/linux-generic/include/odp_schedule_internal.h') diff --git a/platform/linux-generic/include/odp_schedule_internal.h b/platform/linux-generic/include/odp_schedule_internal.h index 78e16c4e6..08683941a 100644 --- a/platform/linux-generic/include/odp_schedule_internal.h +++ b/platform/linux-generic/include/odp_schedule_internal.h @@ -24,7 +24,7 @@ int schedule_queue_init(queue_entry_t *qe); void schedule_queue_destroy(queue_entry_t *qe); int schedule_queue(const queue_entry_t *qe); void schedule_pktio_start(odp_pktio_t pktio, int num_in_queue, - int in_queue_idx[], int prio); + int in_queue_idx[]); void odp_schedule_release_context(void); #ifdef __cplusplus -- cgit v1.2.3