Message ID | 1460668001-25533-5-git-send-email-bill.fischofer@linaro.org |
---|---|
State | Superseded |
Headers | show |
diff --git a/platform/linux-generic/odp_packet.c b/platform/linux-generic/odp_packet.c index 2c44316..49e52dd 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_to_index(odp_packet_hdr(pkt)->input); +} + void *odp_packet_user_ptr(odp_packet_t pkt) { return odp_packet_hdr(pkt)->buf_hdr.buf_ctx;
Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org> --- platform/linux-generic/odp_packet.c | 5 +++++ 1 file changed, 5 insertions(+)