diff options
author | Matias Elo <matias.elo@nokia.com> | 2022-07-29 15:53:25 +0300 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2022-08-30 16:00:24 +0300 |
commit | 117e155bfa111b66f299f0977a80b4f01158ee98 (patch) | |
tree | 799258c1dcf926783243d1993a6d13df9e8371ba /platform/linux-generic/odp_packet.c | |
parent | 29f112c6a3ad1f8cf410993878a55d0c8ba84167 (diff) |
linux-gen: packet: inline odp_packet_buf_data_offset() implementation
Inline implementation of odp_packet_buf_data_offset() function.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Diffstat (limited to 'platform/linux-generic/odp_packet.c')
-rw-r--r-- | platform/linux-generic/odp_packet.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/platform/linux-generic/odp_packet.c b/platform/linux-generic/odp_packet.c index b5fbbcce3..af37b06b3 100644 --- a/platform/linux-generic/odp_packet.c +++ b/platform/linux-generic/odp_packet.c @@ -2430,13 +2430,6 @@ static inline odp_packet_hdr_t *packet_buf_to_hdr(odp_packet_buf_t pkt_buf) return (odp_packet_hdr_t *)(uintptr_t)pkt_buf; } -uint32_t odp_packet_buf_data_offset(odp_packet_buf_t pkt_buf) -{ - odp_packet_hdr_t *pkt_hdr = packet_buf_to_hdr(pkt_buf); - - return (uintptr_t)pkt_hdr->seg_data - (uintptr_t)odp_packet_buf_head(pkt_buf); -} - void odp_packet_buf_data_set(odp_packet_buf_t pkt_buf, uint32_t data_offset, uint32_t data_len) { odp_packet_hdr_t *pkt_hdr = packet_buf_to_hdr(pkt_buf); |