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

            Bug ID: 2089
           Summary: What happens if the out_queue is not empty?
           Product: OpenDataPlane - linux- generic reference
           Version: next
          Hardware: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: ---
         Component: queue
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

Bug is place holder to resolve question risen in that email:

https://lists.linaro.org/pipermail/lng-odp/2016-February/020893.html

    +static void destroy_out_queues(pktio_entry_t *entry, int num)
    +{
    +       int i;
    +
    +       for (i = 0; i < num; i++) {
    +               if (entry->s.out_queue[i].queue != ODP_QUEUE_INVALID) {
    +                       odp_queue_destroy(entry->s.out_queue[i].queue);


What happens if the out_queue is not empty?  odp_queue_destroy() will fail then
and the result will be a resource leakage.  The corresponding
destroy_in_queues() is guarded by the flush_in_queues() routine to ensure that
they are empty.  It seems we need a corresponding flush_out_queues() routine to
ensure that the output queues are similarly empty.

-- 
You are receiving this mail because:
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