diff options
author | Petri Savolainen <petri.savolainen@nokia.com> | 2017-01-10 11:19:07 +0200 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2017-01-12 18:01:13 +0300 |
commit | cd83d5d1114a40abf554c59bd92c8a8199b10c7a (patch) | |
tree | 01cbbaa6e9eee0c4229ff6691b6ed445171e9bba /platform/linux-generic/include/odp_buffer_internal.h | |
parent | 112209c3fc672aee4a3074aa784aefe00f32d250 (diff) |
linux-gen: packet: replace base_len with constant
Only packets used base_len of buffer header. Replace the struct
field with constant. This improves performance as the constant data
is not read any more and buffer header size is smaller.
Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-and-tested-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_internal.h')
-rw-r--r-- | platform/linux-generic/include/odp_buffer_internal.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/platform/linux-generic/include/odp_buffer_internal.h b/platform/linux-generic/include/odp_buffer_internal.h index 326c025ed..076abe96e 100644 --- a/platform/linux-generic/include/odp_buffer_internal.h +++ b/platform/linux-generic/include/odp_buffer_internal.h @@ -56,7 +56,6 @@ struct odp_buffer_hdr_t { /* Initial buffer data pointer and length */ uint8_t *base_data; uint8_t *buf_end; - uint32_t base_len; /* Max data size */ uint32_t size; @@ -64,9 +63,6 @@ struct odp_buffer_hdr_t { /* Pool type */ int8_t type; - /* Event type. Maybe different than pool type (crypto compl event) */ - int8_t event_type; - /* Burst counts */ uint8_t burst_num; uint8_t burst_first; @@ -97,6 +93,9 @@ struct odp_buffer_hdr_t { /* User area size */ uint32_t uarea_size; + /* Event type. Maybe different than pool type (crypto compl event) */ + int8_t event_type; + /* Burst table */ struct odp_buffer_hdr_t *burst[BUFFER_BURST_SIZE]; |