> -----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. 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
