This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "".
The branch, 2.0 has been updated via 6cd43041e55bd73a02ca202f835e590b3ad5c354 (commit) from 65419c16086369f86dea068e54ce492526fa4f41 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- commit 6cd43041e55bd73a02ca202f835e590b3ad5c354 Author: Kevin Wang kevin.wang@arm.com Date: Fri Nov 10 17:12:32 2017 +0800
linux-gen: buffer: remove burst metadata from odp_buffer_hdr_t
The total packet meta data size was 7 cache lines for Linux-generic. For scalable scheduler, the burst metadata is not required. So just remove it for scalable scheduler. After the changes, the size of the meta data is 4 cache lines for Linux-generic.
Signed-off-by: Kevin Wang kevin.wang@arm.com Reviewed-by: Honnappa Nagarahalli honnappa.nagarahalli@arm.com Reviewed-by: Brian Brooks brian.brooks@arm.com Reviewed-by: Yi He yi.he@linaro.org
diff --git a/platform/linux-generic/Makefile.am b/platform/linux-generic/Makefile.am index 3c505495..56ef03c6 100644 --- a/platform/linux-generic/Makefile.am +++ b/platform/linux-generic/Makefile.am @@ -261,16 +261,9 @@ __LIB__libodp_linux_la_SOURCES = \ odp_pkt_queue.c \ odp_queue_if.c \ queue/subsystem.c \ - queue/generic.c \ - queue/scalable.c \ odp_rwlock.c \ odp_rwlock_recursive.c \ odp_schedule_if.c \ - schedule/generic.c \ - schedule/iquery.c \ - schedule/scalable.c \ - schedule/scalable_ordered.c \ - schedule/sp.c \ schedule/subsystem.c \ odp_shared_memory.c \ odp_sorted_list.c \ @@ -359,19 +352,29 @@ endif pool/generic.lo: AM_CFLAGS += -DIM_ACTIVE_MODULE buffer/generic.lo: AM_CFLAGS += -DIM_ACTIVE_MODULE if ODP_SCHEDULE_SCALABLE +__LIB__libodp_linux_la_SOURCES += schedule/scalable.c \ + schedule/scalable_ordered.c schedule/scalable.lo: AM_CFLAGS += -DIM_ACTIVE_MODULE else -schedule/generic.lo: AM_CFLAGS += -DIM_ACTIVE_MODULE -endif if ODP_SCHEDULE_SP +__LIB__libodp_linux_la_SOURCES += schedule/sp.c schedule/sp.lo: AM_CFLAGS += -DIM_ACTIVE_MODULE -endif +else if ODP_SCHEDULE_IQUERY +__LIB__libodp_linux_la_SOURCES += schedule/iquery.c schedule/iquery.lo: AM_CFLAGS += -DIM_ACTIVE_MODULE +else +__LIB__libodp_linux_la_SOURCES += schedule/generic.c +schedule/generic.lo: AM_CFLAGS += -DIM_ACTIVE_MODULE +endif endif +endif + if ODP_SCHEDULE_SCALABLE +__LIB__libodp_linux_la_SOURCES += queue/scalable.c queue/scalable.lo: AM_CFLAGS += -DIM_ACTIVE_MODULE else +__LIB__libodp_linux_la_SOURCES += queue/generic.c queue/generic.lo: AM_CFLAGS += -DIM_ACTIVE_MODULE endif
diff --git a/platform/linux-generic/include/odp_buffer_internal.h b/platform/linux-generic/include/odp_buffer_internal.h index 86f6208f..514e2479 100644 --- a/platform/linux-generic/include/odp_buffer_internal.h +++ b/platform/linux-generic/include/odp_buffer_internal.h @@ -73,6 +73,7 @@ struct odp_buffer_hdr_t { /* Segments */ seg_entry_t seg[CONFIG_PACKET_SEGS_PER_HDR];
+#ifndef ODP_SCHEDULE_SCALABLE /* Burst counts */ uint8_t burst_num; uint8_t burst_first; @@ -82,7 +83,7 @@ struct odp_buffer_hdr_t {
/* Burst table */ struct odp_buffer_hdr_t *burst[BUFFER_BURST_SIZE]; - +#endif /* --- Mostly read only data --- */
/* User context pointer or u64 */
-----------------------------------------------------------------------
Summary of changes: platform/linux-generic/Makefile.am | 23 ++++++++++++---------- .../linux-generic/include/odp_buffer_internal.h | 3 ++- 2 files changed, 15 insertions(+), 11 deletions(-)
hooks/post-receive