Skip to content

Commit

Permalink
linux-gen: buffer: remove buffer_inlines header file
Browse files Browse the repository at this point in the history
Moved odp_buffer_inlines.h content to odp_buffer_internal.h
and removed the file. Other xxx_inlines.h headers do not
contain internal functions but only code for API function
inlining.

Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>
Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org>
Reviewed-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
  • Loading branch information
Petri Savolainen authored and muvarov committed May 10, 2018
1 parent cc6d68e commit f49289a
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 51 deletions.
1 change: 0 additions & 1 deletion platform/linux-generic/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ noinst_HEADERS = \
include/odp_atomic_internal.h \
include/odp_bitmap_internal.h \
include/odp_bitset.h \
include/odp_buffer_inlines.h \
include/odp_buffer_internal.h \
include/odp_classification_datamodel.h \
include/odp_classification_inlines.h \
Expand Down
40 changes: 0 additions & 40 deletions platform/linux-generic/include/odp_buffer_inlines.h

This file was deleted.

14 changes: 14 additions & 0 deletions platform/linux-generic/include/odp_buffer_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,20 @@ struct ODP_ALIGNED_CACHE odp_buffer_hdr_t {
ODP_STATIC_ASSERT(CONFIG_PACKET_SEGS_PER_HDR < 256,
"CONFIG_PACKET_SEGS_PER_HDR_TOO_LARGE");

odp_event_type_t _odp_buffer_event_type(odp_buffer_t buf);
void _odp_buffer_event_type_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)
{
return (odp_buffer_t)hdr;
}

static inline odp_event_t event_from_buf_hdr(odp_buffer_hdr_t *hdr)
{
return (odp_event_t)hdr;
}

#ifdef __cplusplus
}
#endif
Expand Down
1 change: 0 additions & 1 deletion platform/linux-generic/include/odp_packet_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ extern "C" {
#include <odp/api/debug.h>
#include <odp_buffer_internal.h>
#include <odp_pool_internal.h>
#include <odp_buffer_inlines.h>
#include <odp/api/packet.h>
#include <odp/api/plat/packet_inline_types.h>
#include <odp/api/packet_io.h>
Expand Down
1 change: 0 additions & 1 deletion platform/linux-generic/odp_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include <odp/api/buffer.h>
#include <odp_pool_internal.h>
#include <odp_buffer_internal.h>
#include <odp_buffer_inlines.h>
#include <odp_debug_internal.h>

#include <string.h>
Expand Down
1 change: 0 additions & 1 deletion platform/linux-generic/odp_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include <odp/api/pool.h>
#include <odp_buffer_internal.h>
#include <odp_ipsec_internal.h>
#include <odp_buffer_inlines.h>
#include <odp_debug_internal.h>
#include <odp_packet_internal.h>

Expand Down
1 change: 0 additions & 1 deletion platform/linux-generic/odp_ipsec_events.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include <odp/api/shared_memory.h>

#include <odp_buffer_internal.h>
#include <odp_buffer_inlines.h>
#include <odp_debug_internal.h>
#include <odp_ipsec_internal.h>
#include <odp_pool_internal.h>
Expand Down
1 change: 0 additions & 1 deletion platform/linux-generic/odp_pool.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <odp_pool_internal.h>
#include <odp_internal.h>
#include <odp_buffer_inlines.h>
#include <odp_packet_internal.h>
#include <odp_config_internal.h>
#include <odp_debug_internal.h>
Expand Down
1 change: 0 additions & 1 deletion platform/linux-generic/odp_queue_basic.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include <odp/api/buffer.h>
#include <odp_buffer_internal.h>
#include <odp_pool_internal.h>
#include <odp_buffer_inlines.h>
#include <odp_internal.h>
#include <odp/api/shared_memory.h>
#include <odp/api/schedule.h>
Expand Down
1 change: 0 additions & 1 deletion platform/linux-generic/odp_queue_scalable.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include <odp_config_internal.h>
#include <odp_debug_internal.h>

#include <odp_buffer_inlines.h>
#include <odp_packet_io_internal.h>
#include <odp_pool_internal.h>
#include <odp_queue_scalable_internal.h>
Expand Down
1 change: 0 additions & 1 deletion platform/linux-generic/odp_schedule_basic.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include <odp_ring_internal.h>
#include <odp_timer_internal.h>
#include <odp_queue_internal.h>
#include <odp_buffer_inlines.h>
#include <odp_libconfig_internal.h>

/* Number of priority levels */
Expand Down
1 change: 0 additions & 1 deletion platform/linux-generic/odp_schedule_scalable.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include <odp_ishmpool_internal.h>

#include <odp_align_internal.h>
#include <odp_buffer_inlines.h>
#include <odp_llqueue.h>
#include <odp_queue_scalable_internal.h>
#include <odp_schedule_if.h>
Expand Down
1 change: 0 additions & 1 deletion platform/linux-generic/odp_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
#include <odp/api/atomic.h>
#include <odp_atomic_internal.h>
#include <odp/api/buffer.h>
#include <odp_buffer_inlines.h>
#include <odp/api/cpu.h>
#include <odp/api/pool.h>
#include <odp_pool_internal.h>
Expand Down

0 comments on commit f49289a

Please sign in to comment.