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;
+
+
Agreed. Again, this was just a rebase of Barry's earlier patch that
predated that routine. I can post a follow-on patch to address this.
On Thu, Feb 18, 2016 at 6:52 AM, Maxim Uvarov
wrote:
> On 02/18/16 05:03, Bill Fischofer wrote:
>
>> +static void
On 02/18/16 05:03, Bill Fischofer wrote:
+ odp_pool_param_init(_param);
+ odp_pktio_param_init(_param);
+
+ pktio_param.in_mode = ODP_PKTIN_MODE_DIRECT;
+ pool_param.pkt.num = 10 * MAX_PKTS;
+ pool_param.type = ODP_POOL_PACKET;
Just my preference to have init
On 02/18/16 05:03, Bill Fischofer wrote:
+
+static odp_bool_t approx_eq32(uint32_t val, uint32_t correct)
+{
+ uint64_t low_bound, val_times_100, high_bound;
+
+ if (val == correct)
+ return true;
+
+ low_bound = 98 * (uint64_t)correct;
+ val_times_100
On 02/18/16 05:03, Bill Fischofer wrote:
+static void busy_wait(uint64_t nanoseconds)
+{
+ odp_time_t start_time, end_time;
+ uint32_t cnt;
+
+ start_time = odp_time_local();
+ end_time = odp_time_sum(start_time,
+
From: Barry Spinney
This patch primarily consists of the new traffic_mngr tests inside of
traffic_mngr.c. The other two files just contain uninteresting
boiler-plate code.
Signed-off-by: Barry Spinney
Signed-off-by: Bill Fischofer