aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/include/odp_buffer_inlines.h
diff options
context:
space:
mode:
authorMatias Elo <matias.elo@nokia.com>2017-11-30 12:36:23 +0200
committerMaxim Uvarov <maxim.uvarov@linaro.org>2017-12-27 21:41:46 +0300
commit4ed1ca5d9b48914dea07ed657dce9a77115d6d87 (patch)
tree30ab9bc9adbc825600c2573032c4a7885d04cef3 /platform/linux-generic/include/odp_buffer_inlines.h
parent8ed1480f077821fcd0eb1716d5ca5e3f9eb93dcc (diff)
linux-gen: event: move event subtype to packet header
Event subtype is only used by packets, so move subtype to packet header to optimize cache usage. This change fixes the ~30% performance penalty in l2fwd (zero-copy dpdk pktio) caused by the initialization of event subtype. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'platform/linux-generic/include/odp_buffer_inlines.h')
-rw-r--r--platform/linux-generic/include/odp_buffer_inlines.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/platform/linux-generic/include/odp_buffer_inlines.h b/platform/linux-generic/include/odp_buffer_inlines.h
index e095aec5f..a5658e815 100644
--- a/platform/linux-generic/include/odp_buffer_inlines.h
+++ b/platform/linux-generic/include/odp_buffer_inlines.h
@@ -21,8 +21,6 @@ extern "C" {
odp_event_type_t _odp_buffer_event_type(odp_buffer_t buf);
void _odp_buffer_event_type_set(odp_buffer_t buf, int ev);
-odp_event_subtype_t _odp_buffer_event_subtype(odp_buffer_t buf);
-void _odp_buffer_event_subtype_set(odp_buffer_t buf, int ev);
int odp_buffer_snprint(char *str, uint32_t n, odp_buffer_t buf);
static inline odp_buffer_t buf_from_buf_hdr(odp_buffer_hdr_t *hdr)