diff options
author | Jere Leppänen <jere.leppanen@nokia.com> | 2022-06-08 19:02:40 +0300 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2022-06-21 16:02:01 +0300 |
commit | 1f683c665f8644143538a50aaf24530599eefada (patch) | |
tree | 60d4afd1f8f489aa1a04b103516cf2077bff243b /platform/linux-generic/odp_schedule_basic.c | |
parent | 37bf0f0d27b7322b8ed602001330f3fb32c53e34 (diff) |
linux-gen: queue: remove an extra level of hierarchy from queue_entry_t
Remove an extra level of hierarchy from queue_entry_t, and make the
type cache aligned.
Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Diffstat (limited to 'platform/linux-generic/odp_schedule_basic.c')
-rw-r--r-- | platform/linux-generic/odp_schedule_basic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/linux-generic/odp_schedule_basic.c b/platform/linux-generic/odp_schedule_basic.c index 4b711ec93..81065a8d5 100644 --- a/platform/linux-generic/odp_schedule_basic.c +++ b/platform/linux-generic/odp_schedule_basic.c @@ -1132,7 +1132,7 @@ static int schedule_ord_enq_multi(odp_queue_t dst_queue, void *event_hdr[], dst_qentry = qentry_from_handle(dst_queue); - if (dst_qentry->s.param.order == ODP_QUEUE_ORDER_IGNORE) + if (dst_qentry->param.order == ODP_QUEUE_ORDER_IGNORE) return 0; src_queue = sched_local.ordered.src_queue; @@ -1146,7 +1146,7 @@ static int schedule_ord_enq_multi(odp_queue_t dst_queue, void *event_hdr[], } /* Pktout may drop packets, so the operation cannot be stashed. */ - if (dst_qentry->s.pktout.pktio != ODP_PKTIO_INVALID || + if (dst_qentry->pktout.pktio != ODP_PKTIO_INVALID || odp_unlikely(stash_num >= MAX_ORDERED_STASH)) { /* If the local stash is full, wait until it is our turn and * then release the stash and do enqueue directly. */ |