ofproto: Get enough headroom in fail-open when connected to controller.
authorBen Pfaff <blp@nicira.com>
Wed, 1 Sep 2010 17:17:40 +0000 (10:17 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 1 Sep 2010 19:55:50 +0000 (12:55 -0700)
commitc9b5816cfd8fccc2abedd258d914882033bfcf0a
tree9d782eb8a52fee7e962ecc72c6353112fb34938f
parent68efcbec41b0acfd8bb7579a5d38afd71b6daf7c
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@nicira.com>
ofproto/ofproto.c