[ovs-dev] [PATCH] ofproto: Avoid buffer copy in OFPT_PACKET_IN path.

Ben Pfaff blp at nicira.com
Mon Apr 26 23:20:56 UTC 2010


On Mon, Apr 26, 2010 at 04:18:57PM -0700, Ben Pfaff wrote:
> 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.

Please ignore this.  I'll send out an improved version in a bit.




More information about the dev mailing list