On 02/18/16 05:03, Bill Fischofer wrote:
+static void flush_leftover_pkts(odp_tm_t odp_tm, odp_pktio_t pktio)
+{
+       odp_packet_t rcv_pkt;
+       odp_time_t   start_time, current_time, duration;
+       uint64_t     min_timeout_ns, max_timeout_ns, duration_ns;
+       int          rc;
+
+       /* Set the timeout to be at least 10 milliseconds and at most 100
+        * milliseconds */
+       min_timeout_ns = 10000000ULL;
10 * ODP_TIME_MSEC_IN_NS
+       max_timeout_ns = 100000000ULL;
100 * ODP_TIME_MSEC_IN_NS
+       start_time     = odp_time_local();

_______________________________________________
lng-odp mailing list
lng-odp@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to