[ovs-git] Open vSwitch: ofproto: Avoid buffer copy in OFPT_PACKET_IN path. (master)

dev at openvswitch.org dev at openvswitch.org
Tue Apr 27 09:41:45 PDT 2010


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, master has been updated
       via  43253595291318833572088595769b45a79c9c54 (commit)
      from  1f256c11cd354fe1494af6846cf31c7ee2698e6c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 43253595291318833572088595769b45a79c9c54
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=43253595291318833572088595769b45a79c9c54
Author: Ben Pfaff <blp at nicira.com>
		
ofproto: Avoid buffer copy in OFPT_PACKET_IN path.
		
When a dpif passes an odp_msg down to ofproto, and ofproto transforms it
into an ofp_packet_in to send to the controller, until now this always
involved a full copy of the packet inside ofproto.  This commit eliminates
this copy by ensuring that there is always enough headroom in the ofpbuf
that holds the odp_msg to replace it by an ofp_packet_in in-place.

>From Jean Tourrilhes <jt at hpl.hp.com>, with some revisions.


-----------------------------------------------------------------------

Summary of changes:
 lib/dpif-linux.c    |    3 +-
 lib/dpif-netdev.c   |    3 +-
 lib/dpif-provider.h |   16 ++++++-
 lib/dpif.c          |    7 ++-
 ofproto/ofproto.c   |  123 ++++++++++++++++++++++++++++++++++++++------------
 5 files changed, 116 insertions(+), 36 deletions(-)


hooks/post-receive
-- 
Open vSwitch




More information about the git mailing list