[ovs-git] Open vSwitch: ofproto: Get enough headroom in fail-open when connected to controller. (master)

dev at openvswitch.org dev at openvswitch.org
Wed Sep 1 20:44:16 UTC 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  c9b5816cfd8fccc2abedd258d914882033bfcf0a (commit)
       via  68efcbec41b0acfd8bb7579a5d38afd71b6daf7c (commit)
      from  f79cb67e689566cfbf3071e0ac0e29923ada5a97 (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 c9b5816cfd8fccc2abedd258d914882033bfcf0a
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=c9b5816cfd8fccc2abedd258d914882033bfcf0a
Author: Ben Pfaff <blp at nicira.com>
		
ofproto: Get enough headroom in fail-open when connected to controller.
		
Since commit 750638bb "ofproto: Avoid ofpbuf_clone() for OFPAT_CONTROLLER
common case," send_packet_in() needs at least DPIF_RECV_MSG_PADDING bytes
of headroom, which ofpbuf_clone() doesn't supply.  This commit should fix
that.

This fixes an assertion failure in ofpbuf_prealloc_headroom() via
send_packet_in().

Reported-by: Justin Pettit <jpettit at nicira.com>


commit 68efcbec41b0acfd8bb7579a5d38afd71b6daf7c
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=68efcbec41b0acfd8bb7579a5d38afd71b6daf7c
Author: Ben Pfaff <blp at nicira.com>
		
ofpbuf: Add ofpbuf_new_with_headroom(), ofpbuf_clone_with_headroom().
		
These new functions simplify an increasingly common usage pattern.

Suggested-by: Jesse Gross <jesse at nicira.com>


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

Summary of changes:
 lib/dpif-linux.c  |    3 +--
 lib/dpif-netdev.c |    3 +--
 lib/ofpbuf.c      |   20 ++++++++++++++++++++
 lib/ofpbuf.h      |    3 +++
 ofproto/ofproto.c |    3 ++-
 ofproto/pktbuf.c  |    4 ++--
 6 files changed, 29 insertions(+), 7 deletions(-)


hooks/post-receive
-- 
Open vSwitch




More information about the git mailing list