aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--platform/linux-generic/include/odp_packet_internal.h2
-rw-r--r--platform/linux-generic/odp_packet.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/platform/linux-generic/include/odp_packet_internal.h b/platform/linux-generic/include/odp_packet_internal.h
index 89fb34b6f..fb3d44498 100644
--- a/platform/linux-generic/include/odp_packet_internal.h
+++ b/platform/linux-generic/include/odp_packet_internal.h
@@ -193,7 +193,7 @@ static inline seg_entry_t *seg_entry_last(odp_packet_hdr_t *hdr)
*/
static inline void packet_init(odp_packet_hdr_t *pkt_hdr, uint32_t len)
{
- pool_t *pool = pool_entry_from_hdl(pkt_hdr->buf_hdr.pool_hdl);
+ pool_t *pool = pkt_hdr->buf_hdr.pool_ptr;
uint32_t seg_len;
int num = pkt_hdr->buf_hdr.segcount;
diff --git a/platform/linux-generic/odp_packet.c b/platform/linux-generic/odp_packet.c
index 6d1f1bd02..ca706b2e5 100644
--- a/platform/linux-generic/odp_packet.c
+++ b/platform/linux-generic/odp_packet.c
@@ -338,7 +338,7 @@ static inline void link_segments(odp_packet_hdr_t *pkt_hdr[], int num)
int cur, i;
odp_packet_hdr_t *hdr;
odp_packet_hdr_t *head = pkt_hdr[0];
- uint32_t seg_len = pool_entry_from_hdl(head->buf_hdr.pool_hdl)->seg_len;
+ uint32_t seg_len = ((pool_t *)(head->buf_hdr.pool_ptr))->seg_len;
cur = 0;
@@ -385,7 +385,7 @@ static inline void init_segments(odp_packet_hdr_t *pkt_hdr[], int num)
/* First segment is the packet descriptor */
hdr = pkt_hdr[0];
- seg_len = pool_entry_from_hdl(hdr->buf_hdr.pool_hdl)->seg_len;
+ seg_len = ((pool_t *)(hdr->buf_hdr.pool_ptr))->seg_len;
/* Defaults for single segment packet */
hdr->buf_hdr.seg[0].data = hdr->buf_hdr.base_data;
@@ -416,7 +416,7 @@ static inline void reset_seg(odp_packet_hdr_t *pkt_hdr, int first, int num)
void *base;
int i;
seg_entry_t *seg;
- uint32_t seg_len = pool_entry_from_hdl(hdr->buf_hdr.pool_hdl)->seg_len;
+ uint32_t seg_len = ((pool_t *)(hdr->buf_hdr.pool_ptr))->seg_len;
uint8_t idx;
seg_entry_find_idx(&hdr, &idx, first);