Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page: include/odp/api/spec/packet.h line 49 @@ -244,6 +267,16 @@ odp_packet_t odp_packet_from_event(odp_event_t ev); */ odp_event_t odp_packet_to_event(odp_packet_t pkt); +/** + * Convert multiple packet handles to events + * + * @param pkt Array of packet handles to convert + * @param[out] ev Event handle array for output + * @param num Number of packets and events + */ +void odp_packet_to_event_multi(const odp_packet_t pkt[], odp_event_t ev[], + int num);
Comment: Again since `odp_packet_to_event()` is likely to be just a cast that can be inlined away it's not clear why a `multi` version is needed. > Bill Fischofer(Bill-Fischofer-Linaro) wrote: > Again, it's not clear why this is needed. >> Bill Fischofer(Bill-Fischofer-Linaro) wrote: >> Not clear why this is needed. How does an application determine this more >> efficiently than the implementation would? https://github.com/Linaro/odp/pull/318#discussion_r154375828 updated_at 2017-12-01 15:58:07