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

            Bug ID: 1234
           Summary: schedule_pause_resume strict assertion
           Product: OpenDataPlane
           Version: unspecified
          Hardware: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: ---
         Component: Validation
          Assignee: [email protected]
          Reporter: [email protected]

There is a test in schedule validaton : test_schedule_pause_resume in which the
following is performed:
-a number of events (buf type ) are enqueued 
-a number of iteratons(NUM_BUFS_BEFORE_PAUSE) are performed and in each
iteration a schedule of type NO_WAIT is executed

Looking at the code one can see that there is a strict assertion that for each
iteration, odp_schedule function must return a  valid event.
>From an implementation perspective there is no guarantee that when a “NO WAIT
schedule” is performed,  there will always be a valid event returned.
The code snippet is :
      for (i = 0; i < NUM_BUFS_BEFORE_PAUSE; i++) {
            ev = odp_schedule(&from, ODP_SCHED_NO_WAIT);
            CU_ASSERT(from == queue);
            buf = odp_buffer_from_event(ev);
            odp_buffer_free(buf);
      }

The CU_ASSERT(from == queue) should be made only if the schedule returns a
valid event.

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

Reply via email to