Re: [ovs-dev] [userspace meter v3 2/5] dp-packet: Enhance packet batch APIs.

2017-01-26 Thread Andy Zhou
On Wed, Jan 25, 2017 at 4:50 PM, Jarno Rajahalme wrote: > Trusting you address the comments below: > > Acked-by: Jarno Rajahalme > Thanks for the review. Pushed with fixes. > > > > On Jan 24, 2017, at 10:45 PM, Andy Zhou wrote: > > > > One common use case of 'struct dp_packet_batch' is to pro

Re: [ovs-dev] [userspace meter v3 2/5] dp-packet: Enhance packet batch APIs.

2017-01-25 Thread Jarno Rajahalme
Trusting you address the comments below: Acked-by: Jarno Rajahalme > On Jan 24, 2017, at 10:45 PM, Andy Zhou wrote: > > One common use case of 'struct dp_packet_batch' is to process all > packets in the batch in order. Add an iterator for this use case > to simplify the logic of calling sites

[ovs-dev] [userspace meter v3 2/5] dp-packet: Enhance packet batch APIs.

2017-01-24 Thread Andy Zhou
One common use case of 'struct dp_packet_batch' is to process all packets in the batch in order. Add an iterator for this use case to simplify the logic of calling sites, Another common use case is to drop packets in the batch, by reading all packets, but writing back pointers of fewer packets. Ad