> -----Original Message-----
> From: ext Zoltan Kiss [mailto:[email protected]]
> Sent: Friday, April 17, 2015 2:14 PM
> To: Savolainen, Petri (Nokia - FI/Espoo); [email protected]
> Subject: Re: [lng-odp] odp_packet_add/rem_data question
> 
> 
> 
> On 17/04/15 10:46, Savolainen, Petri (Nokia - FI/Espoo) wrote:
> >
> >
> >> -----Original Message-----
> >> From: lng-odp [mailto:[email protected]] On Behalf Of
> ext
> >> Zoltan Kiss
> >> Sent: Thursday, April 16, 2015 9:39 PM
> >> To: [email protected]
> >> Subject: [lng-odp] odp_packet_add/rem_data question
> >>
> >> Hi,
> >>
> >> If I add new data area, can I do that at the expense of the actual
> >> segment's tailroom? (by shifting data up into the tailroom to make
> >> space) In other words: does this necessarily increase
> >> odp_packet_buf_len()?
> >> And if I remove data area, do I have to decrease odp_packet_buf_len()?
> I
> >> hope not, it wouldn't make too much sense, and it wouldn't be always
> >> possible if you have only fixed sized buffers.
> >>
> >> Zoli
> >
> > As currently defined, add/rem_data are free to use head/tailroom,
> add/remove segments or even allocate a new packet and copy data there.
> 
> So adding/removing data area doesn't meant the underlying buffer space
> need to be increased/decreased, is that correct?

Yes. In general, user would use add/rem when push/pull would not fit the 
current  tail/headroom or segment, or to insert/delete data in the middle.

-Petri

> 
> 
> >
> > We'll need to develop segmentation / packet manipulation APIs further
> during the year.
> >
> > -Petri
> >
_______________________________________________
lng-odp mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to