]> git.proxmox.com Git - mirror_ovs.git/commit
dp-packet: Enhance packet batch APIs.
authorAndy Zhou <azhou@ovn.org>
Tue, 17 Jan 2017 23:56:58 +0000 (15:56 -0800)
committerAndy Zhou <azhou@ovn.org>
Fri, 27 Jan 2017 01:35:29 +0000 (17:35 -0800)
commit72c84bc2db23dfb9bb9032478b7c414d492ac717
tree5eba93e104ff3ba4aab659ef0704422dba4dddb4
parentd8ada2368cbe34b529de6f3f1a87490dfbdb160f
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@ovn.org>
Acked-by: Jarno Rajahalme <jarno@ovn.org>
lib/dp-packet.h
lib/dpif-netdev.c
lib/dpif.c
lib/netdev-dummy.c
lib/netdev-linux.c
lib/netdev.c
lib/odp-execute.c
ofproto/ofproto-dpif-xlate.c
tests/test-conntrack.c