Message ID | 1460829337-31120-5-git-send-email-bill.fischofer@linaro.org |
---|---|
State | Accepted |
Commit | 842e89445e15b00d1dcf403e8ad5194c806aaa1b |
Headers | show |
diff --git a/platform/linux-generic/odp_packet.c b/platform/linux-generic/odp_packet.c index 2c44316..93c237f 100644 --- a/platform/linux-generic/odp_packet.c +++ b/platform/linux-generic/odp_packet.c @@ -330,6 +330,11 @@ odp_pktio_t odp_packet_input(odp_packet_t pkt) return odp_packet_hdr(pkt)->input; } +int odp_packet_input_index(odp_packet_t pkt) +{ + return odp_pktio_index(odp_packet_hdr(pkt)->input); +} + void *odp_packet_user_ptr(odp_packet_t pkt) { return odp_packet_hdr(pkt)->buf_hdr.buf_ctx;