Re: [lng-odp] [API-NEXT PATCH v2 05/10] linux-gen: pool: reimplement pool with ring

2016-10-24 Thread Savolainen, Petri (Nokia - FI/Espoo)
- -static inline void *segment_map(odp_buffer_hdr_t *buf, -                               odp_buffer_seg_t seg, -                               uint32_t *seglen, -                               uint32_t limit, -                               uint32_t hr) -{ -       uint32_t seg_offset, buf_left;

Re: [lng-odp] [API-NEXT PATCH v2 05/10] linux-gen: pool: reimplement pool with ring

2016-10-21 Thread Bill Fischofer
On Fri, Oct 21, 2016 at 3:36 PM, Bill Fischofer wrote: > > > On Fri, Oct 21, 2016 at 3:25 PM, Bill Fischofer > wrote: > >> >> >> On Fri, Oct 21, 2016 at 6:15 AM, Petri Savolainen < >> petri.savolai...@nokia.com> wrote: >> >>> Used the ring data structure to implement pool. Also >>> buffer struct

Re: [lng-odp] [API-NEXT PATCH v2 05/10] linux-gen: pool: reimplement pool with ring

2016-10-21 Thread Bill Fischofer
On Fri, Oct 21, 2016 at 3:25 PM, Bill Fischofer wrote: > > > On Fri, Oct 21, 2016 at 6:15 AM, Petri Savolainen < > petri.savolai...@nokia.com> wrote: > >> Used the ring data structure to implement pool. Also >> buffer structure was simplified to enable future driver >> interface. Every buffer inc

Re: [lng-odp] [API-NEXT PATCH v2 05/10] linux-gen: pool: reimplement pool with ring

2016-10-21 Thread Bill Fischofer
On Fri, Oct 21, 2016 at 6:15 AM, Petri Savolainen < petri.savolai...@nokia.com> wrote: > Used the ring data structure to implement pool. Also > buffer structure was simplified to enable future driver > interface. Every buffer includes a packet header, so each > buffer can be used as a packet head

[lng-odp] [API-NEXT PATCH v2 05/10] linux-gen: pool: reimplement pool with ring

2016-10-21 Thread Petri Savolainen
Used the ring data structure to implement pool. Also buffer structure was simplified to enable future driver interface. Every buffer includes a packet header, so each buffer can be used as a packet head or segment. Segmentation was disabled and segment size was fixed to a large number (64kB) to lim