[ovs-git] Open vSwitch: dpif-netdev: Eliminate two malloc() calls per packet sent to "userspace". (master)

dev at openvswitch.org dev at openvswitch.org
Thu Aug 16 16:53:07 UTC 2012


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  d88b629b974184efbca54d1750026904a9f77c3f (commit)
       via  2477924e34a9a0827a0ac0790f442d94f254117c (commit)
       via  4e090bc7bfe6993f568701d3fdf9c2621babd03c (commit)
      from  da157f1ef48b002b172fe4914679b8c483011bc4 (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 d88b629b974184efbca54d1750026904a9f77c3f
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=d88b629b974184efbca54d1750026904a9f77c3f
Author: Ben Pfaff <blp at nicira.com>
		
dpif-netdev: Eliminate two malloc() calls per packet sent to "userspace".
		
This is easy enough, so it seems worthwhile now that FreeBSD is starting
to make more use of the "userspace switch".

CC: Ed Maste <emaste at freebsd.org>
Signed-off-by: Ben Pfaff <blp at nicira.com>


commit 2477924e34a9a0827a0ac0790f442d94f254117c
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=2477924e34a9a0827a0ac0790f442d94f254117c
Author: Ben Pfaff <blp at nicira.com>
		
dpif-netdev: Fix memory leak.
		
upcall->packet is allocated with malloc(), via ofpbuf_new(), but nothing
ever frees it.

Found by valgrind.

CC: Ed Maste <emaste at freebsd.org>
Signed-off-by: Ben Pfaff <blp at nicira.com>


commit 4e090bc7bfe6993f568701d3fdf9c2621babd03c
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=4e090bc7bfe6993f568701d3fdf9c2621babd03c
Author: Ben Pfaff <blp at nicira.com>
		
ofproto-dpif: Fix typo in comment.
		
Signed-off-by: Ben Pfaff <blp at nicira.com>


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

Summary of changes:
 lib/dpif-netdev.c      |   32 +++++++++++++++++++-------------
 ofproto/ofproto-dpif.c |    2 +-
 2 files changed, 20 insertions(+), 14 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list