diff options
author | Matias Elo <matias.elo@nokia.com> | 2019-10-31 09:52:17 +0200 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2019-11-21 14:45:29 +0200 |
commit | 4b96e0db3744999890fc606eb6661e3b5af45c46 (patch) | |
tree | d2ea528bc69157b5cb00ad4bd4d76faf1966a78d /platform/linux-dpdk/include/odp | |
parent | 79134cb2a2d0b20490084393f8fd990f155c2983 (diff) |
linux-dpdk: packet: inline packet seg data functions
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Diffstat (limited to 'platform/linux-dpdk/include/odp')
-rw-r--r-- | platform/linux-dpdk/include/odp/api/plat/packet_inlines.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/platform/linux-dpdk/include/odp/api/plat/packet_inlines.h b/platform/linux-dpdk/include/odp/api/plat/packet_inlines.h index 12fea13d8..3447fbcbc 100644 --- a/platform/linux-dpdk/include/odp/api/plat/packet_inlines.h +++ b/platform/linux-dpdk/include/odp/api/plat/packet_inlines.h @@ -82,6 +82,8 @@ extern "C" { #define odp_packet_free __odp_packet_free #define odp_packet_free_multi __odp_packet_free_multi #define odp_packet_free_sp __odp_packet_free_sp + #define odp_packet_seg_data __odp_packet_seg_data + #define odp_packet_seg_data_len __odp_packet_seg_data_len #else #undef _ODP_INLINE #define _ODP_INLINE @@ -432,6 +434,18 @@ _ODP_INLINE void odp_packet_free_sp(const odp_packet_t pkt[], int num) odp_packet_free_multi(pkt, num); } +_ODP_INLINE void *odp_packet_seg_data(odp_packet_t pkt ODP_UNUSED, + odp_packet_seg_t seg) +{ + return odp_packet_data((odp_packet_t)seg); +} + +_ODP_INLINE uint32_t odp_packet_seg_data_len(odp_packet_t pkt ODP_UNUSED, + odp_packet_seg_t seg) +{ + return odp_packet_seg_len((odp_packet_t)seg); +} + #ifdef __cplusplus } #endif |