Re: [lng-odp] [RFC PATCH] api: packet_io: return headroom when set new one

2016-01-14 Thread Bill Fischofer
Once we add the ability to attach additional segments to a packet (as is being discussed in other threads) we may wish to revisit the concept of "extensible" headroom/tailroom. As long as packets can be extended there's no logical reason why headroom/tailroom need be limited to a single segment.

Re: [lng-odp] [RFC PATCH] api: packet_io: return headroom when set new one

2016-01-14 Thread Bala Manoharan
Maximum headroom is defined in ODP_PACKET_MAX_HEADROOM and is an implementation specific value and will not be greater than uint32/2. Having said that the current definition of headroom in ODP is that it will not exceed a single segment meaning the headroom will NOT overflow by adding an empty

Re: [lng-odp] [RFC PATCH] api: packet_io: return headroom when set new one

2016-01-14 Thread Ivan Khoronzhuk
On 14.01.16 14:03, Bala Manoharan wrote: Maximum headroom is defined in ODP_PACKET_MAX_HEADROOM and is an implementation specific value and will not be greater than uint32/2. Having said that the current definition of headroom in ODP is that it will not exceed a single segment meaning the

[lng-odp] [RFC PATCH] api: packet_io: return headroom when set new one

2016-01-13 Thread Ivan Khoronzhuk
It can be used to restore headroom later. Does it possible a headroom to be > sizeof(int32)/2? Signed-off-by: Ivan Khoronzhuk --- include/odp/api/packet_io.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/odp/api/packet_io.h