> On 13 Mar 2017, at 19:58, Bill Fischofer <[email protected]> wrote:
> 
> This is a good start and I have no problem merging this as-is if we want to 
> do this in stages, but I think a bit more is needed. For one, this is using a 
> fixed offset for all references. I'd like to see references created with a 
> couple of different offsets (e.g., 0 and packet_len/2) to get a better feel 
> for any variability in performance due to different offsets, especially as we 
> expect most references to be created with relatively small offsets covering 
> packet headers rather than payload.
> 
> Aside from that, for completeness we really should measure all of the other 
> ODP packet APIs when the input argument is a reference. That would allow us 
> to verify that there are no meaningful performance differences between using 
> references vs. non-references in these other APIs. 
> 

I agree with this but it will take a while until I actually have time to 
implement this. So I would suggest merging this simple patch first before 
implementing a more comprehensive test suite for the packet references.

Testing with zero offset would be a  trivial change and could be added already 
to this patch if required.

-Matias
 

Reply via email to