Skip to content

Commit

Permalink
linux-gen: use inlined event type function
Browse files Browse the repository at this point in the history
Implementation uses internally inlined version of event
functions.

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 3abbe8b commit 11207ff
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions platform/linux-generic/odp_crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
#include <odp/api/plat/packet_inlines.h>
#include <odp_packet_internal.h>

/* Inlined API functions */
#include <odp/api/plat/event_inlines.h>

#include <string.h>
#include <stdlib.h>

Expand Down
3 changes: 3 additions & 0 deletions platform/linux-generic/odp_ipsec_events.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
#include <odp_ipsec_internal.h>
#include <odp_pool_internal.h>

/* Inlined API functions */
#include <odp/api/plat/event_inlines.h>

typedef struct {
/* common buffer header */
odp_buffer_hdr_t buf_hdr;
Expand Down
3 changes: 3 additions & 0 deletions platform/linux-generic/odp_packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
#include <odp/api/packet_io.h>
#include <odp/api/plat/pktio_inlines.h>

/* Inlined API functions */
#include <odp/api/plat/event_inlines.h>

#include <protocols/eth.h>
#include <protocols/ip.h>
#include <protocols/tcp.h>
Expand Down
3 changes: 3 additions & 0 deletions platform/linux-generic/odp_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@
#include <odp_arch_time_internal.h>
#include <odp_timer_internal.h>

/* Inlined API functions */
#include <odp/api/plat/event_inlines.h>

#define TMO_UNUSED ((uint64_t)0xFFFFFFFFFFFFFFFF)
/* TMO_INACTIVE is or-ed with the expiration tick to indicate an expired timer.
* The original expiration tick (63 bits) is still available so it can be used
Expand Down

0 comments on commit 11207ff

Please sign in to comment.