@@ -302,9 +302,6 @@ int packet_parse_layer(odp_packet_hdr_t *pkt_hdr,
/* Reset parser metadata for a new parse */
void packet_parse_reset(odp_packet_hdr_t *pkt_hdr);
-/* Convert a buffer handle to a packet handle */
-odp_packet_t _odp_packet_from_buf_hdr(odp_buffer_hdr_t *buf_hdr);
-
static inline int packet_hdr_has_l2(odp_packet_hdr_t *pkt_hdr)
{
return pkt_hdr->p.input_flags.l2;
@@ -60,11 +60,6 @@ ODP_STATIC_ASSERT(ODP_BUFFER_INVALID == 0, "Buffer invalid not 0");
ODP_STATIC_ASSERT(ODP_EVENT_INVALID == 0, "Event invalid not 0");
#endif
-odp_packet_t _odp_packet_from_buf_hdr(odp_buffer_hdr_t *buf_hdr)
-{
- return (odp_packet_t)buf_hdr;
-}
-
static inline odp_buffer_t packet_to_buffer(odp_packet_t pkt)
{
return (odp_buffer_t)pkt;
@@ -111,7 +111,7 @@ static int queue_tm_reenq(queue_t queue, odp_buffer_hdr_t *buf_hdr)
odp_tm_queue_t tm_queue = MAKE_ODP_TM_QUEUE((uint8_t *)queue -
offsetof(tm_queue_obj_t,
tm_qentry));
- odp_packet_t pkt = _odp_packet_from_buf_hdr(buf_hdr);
+ odp_packet_t pkt = packet_from_buf_hdr(buf_hdr);
return odp_tm_enq(tm_queue, pkt);
}