https://bugs.linaro.org/show_bug.cgi?id=2217

            Bug ID: 2217
           Summary: Traffic manager validation tests fail on a 32-bit x86
                    host
           Product: OpenDataPlane - linux- generic reference
           Version: v1.10
          Hardware: PC
                OS: Linux
            Status: UNCONFIRMED
          Severity: critical
          Priority: ---
         Component: Traffic Manager
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

Traffic manager validation tests fail on a 32-bit x86 host (Ubuntu 16.04).

Output from the first failing validation test:

  Test: traffic_mngr_test_shaper ...Sent 50 packets
tm_process_expired_timers bad timer return
traffic_mngr.c:2382:test_shaper_bw():Sent 50 pkts but only 2 came back
traffic_mngr.c:2382:test_shaper_bw():Sent 50 pkts but only 0 came back
traffic_mngr.c:2382:test_shaper_bw():Sent 50 pkts but only 0 came back
traffic_mngr.c:2382:test_shaper_bw():Sent 50 pkts but only 0 came back
tm_process_expired_timers bad timer return
traffic_mngr.c:2382:test_shaper_bw():Sent 50 pkts but only 2 came back
FAILED
    1. traffic_mngr.c:3666  - test_shaper_bw("bw1", "node_1_1_1", 0, 1 * MBPS)
== 0
    2. traffic_mngr.c:3667  - test_shaper_bw("bw4", "node_1_1_1", 1, 4 * MBPS)
== 0
    3. traffic_mngr.c:3668  - test_shaper_bw("bw10", "node_1_1_1", 2, 10 *
MBPS) == 0
    4. traffic_mngr.c:3669  - test_shaper_bw("bw40", "node_1_1_1", 3, 40 *
MBPS) == 0
    5. traffic_mngr.c:3670  - test_shaper_bw("bw100", "node_1_1_2", 0, 100 *
MBPS) == 0


It seems that at least here (odp_traffic_mngr.c) the code assumes 64-bit
pointers:

2156:   timer_context = (uint64_t)(uintptr_t)ptr;
2157:   queue_num = (timer_context & 0xFFFFFFFF) >> 4;
2158:   timer_seq = timer_context >> 32;
2159:   tm_queue_obj = tm_system->queue_num_tbl[queue_num];

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
lng-odp mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to