[ovs-git] [openvswitch/ovs] 72c84b: dp-packet: Enhance packet batch APIs.
noreply at github.com
Fri Jan 27 01:36:07 UTC 2017
Author: Andy Zhou <azhou at ovn.org>
Date: 2017-01-26 (Thu, 26 Jan 2017)
dp-packet: Enhance packet batch APIs.
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. Add macros
to support this use case.
Signed-off-by: Andy Zhou <azhou at ovn.org>
Acked-by: Jarno Rajahalme <jarno at ovn.org>
More information about the git