[ovs-git] [openvswitch/ovs] 72c84b: dp-packet: Enhance packet batch APIs.

GitHub noreply at github.com
Fri Jan 27 01:36:07 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 72c84bc2db23dfb9bb9032478b7c414d492ac717
      https://github.com/openvswitch/ovs/commit/72c84bc2db23dfb9bb9032478b7c414d492ac717
  Author: Andy Zhou <azhou at ovn.org>
  Date:   2017-01-26 (Thu, 26 Jan 2017)

  Changed paths:
    M lib/dp-packet.h
    M lib/dpif-netdev.c
    M lib/dpif.c
    M lib/netdev-dummy.c
    M lib/netdev-linux.c
    M lib/netdev.c
    M lib/odp-execute.c
    M ofproto/ofproto-dpif-xlate.c
    M tests/test-conntrack.c

  Log Message:
  -----------
  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 mailing list