[ovs-git] [openvswitch/ovs] a90ed0: dpif-netdev: Delay packets' metadata initializatio...

GitHub noreply at github.com
Wed Feb 3 02:29:25 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: a90ed02611446fc7fcfc6fbf237c5c2fbe06eee3
      https://github.com/openvswitch/ovs/commit/a90ed02611446fc7fcfc6fbf237c5c2fbe06eee3
  Author: Daniele Di Proietto <diproiettod at vmware.com>
  Date:   2016-02-02 (Tue, 02 Feb 2016)

  Changed paths:
    M lib/dpif-netdev.c
    M lib/packets.h

  Log Message:
  -----------
  dpif-netdev: Delay packets' metadata initialization.

When a group of packets arrives from a port, we loop through them to
initialize metadata and then we loop through them again to extract the
flow and perform the exact match classification.

This commit combines the two loops into one, and initializes packet->md
in emc_processing() to improve performance.

Since emc_processing() might also be called after recirculation (in
which case the metadata is already valid), an extra parameter is added
to support both cases.

This commits also implements simple prefetching of packet metadata,
to further improve performance.

Signed-off-by: Daniele Di Proietto <diproiettod at vmware.com>
Acked-by: Andy Zhou <azhou at ovn.org>
Acked-by: Chandran, Sugesh <sugesh.chandran at intel.com>




More information about the git mailing list