-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PATCH v4] api: sched: clarify event ordering in ordered contexts #1920
Conversation
1b297c6
to
832ab68
Compare
v2: order of events enqueued by single thread is the enqueue order, even across different scheduling synchronization contexts (i.e. after separate odp_schedule() calls. The previous version of the patch is available in branch sched-ordering-v1 for reference. |
832ab68
to
3fe0500
Compare
v3: Added a couple of clarifications in the text and rebased. |
Previous version is available in sched-ordering-v2 branch. |
Acked-by: Pavan Nikhilesh pbhagavatula@marvell.com |
* on the scheduling synchronization context. The ordering rules apply | ||
* regarless of the type (scheduled or plain) or schedule type (atomic, | ||
* ordered, or parallel) of the destination queue. If the order type of | ||
* the destination queue is ODP_QUEUE_ORDER_IGNORE, then the oder between |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oder/order
Describe event ordering in ordered scheduling contexts more accurately. In particular, events in a destination queue are not necessarily in the same order as they are in the source queue if odp_schedule_multi() returns multiple events (sharing single scheduling synchronization context) and if the ODP application enqueues the events in a different order. Also, other enqueued events than the scheduled ones have a well defined ordering. This API change is not intended to change any functionality but just tries to document more accurately what already is the expected behaviour. Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com> Acked-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
3fe0500
to
02f3c00
Compare
v4: Fixed the typo and rebased. |
Describe event ordering in ordered scheduling contexts more accurately. In particular, events in a destination queue are not necessarily in the same order as they are in the source queue if odp_schedule_multi() returns multiple events (sharing single scheduling synchronization context) and if the ODP application enqueues the events in a different order. Also, other enqueued events than the scheduled ones have a well defined ordering.
This API change is not intended to change any functionality but just tries to document more accurately what already is the expected behaviour.