Merged to api-next,
Maxim.

On 10/28/2015 18:30, Nicolas Morey-Chaisemartin wrote:
As a lot of ODP calls allows the user to receive/poll/send multiple packets at 
once, I think it makes sense to provide a call
to free a bunch of packets/buffers at the same time.

Although implementation may be a simple loop, it leaves space for many 
performance optimizations.

v6:
  * Fix missing init in packet_alloc_multi due to new partial (L2) parsing
  * Add signed of by petri (signed off on v3)

v5:
  * Rebase series on latest api-next
        Conflicted du to CUnit test format chane

v4:
  * In test multi alloc wrappers, check that return code is always >= 0

v3:
  * doc fixes
  * Test do not make asumptions on the amount of buffer returned
  * Add more test coverage
    * Free to multiple pools at once
    * Alloc more than pool contains
    * etc.

v2:
  * Fix prototypes
  * Add alloc_multi functions
  * Add implementations
  * Add tests

Nicolas Morey-Chaisemartin (7):
   api: buffer: add functions to alloc/free multiple buffers at once
   api: packet: add functions to alloc/free multiple packets at once
   linux-generic: pool: add buffer_alloc_multi function
   linux-generic: pool: add implementation for buffer alloc/free multi
   validation: buffer: add tests for buffer alloc/free multi functions
   linux-generic: packet: add implementation for packet alloc/free multi
   validation: packet: add tests for packet alloc/free multi functions

  include/odp/api/buffer.h                           |  26 +++++
  include/odp/api/packet.h                           |  29 ++++++
  .../linux-generic/include/odp_buffer_internal.h    |   2 +
  platform/linux-generic/odp_packet.c                |  32 +++++++
  platform/linux-generic/odp_pool.c                  |  29 ++++++
  test/validation/buffer/buffer.c                    | 106 +++++++++++++++++++++
  test/validation/buffer/buffer.h                    |   2 +
  test/validation/packet/packet.c                    |  81 ++++++++++++++++
  test/validation/packet/packet.h                    |   1 +
  9 files changed, 308 insertions(+)

_______________________________________________
lng-odp mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp

_______________________________________________
lng-odp mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to