]> git.proxmox.com Git - ovs.git/commit
ofpbuf: Enable ofpbuf_push() to expand headroom.
authorBen Pfaff <blp@nicira.com>
Mon, 27 Dec 2010 22:32:45 +0000 (14:32 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 27 Jan 2011 17:26:05 +0000 (09:26 -0800)
commit0dce369bdd8bf47895e59277bcbf77b74af20446
treed82f496bb9714156defa74522bc86ffcba534d05
parent31ac1e590b9bb2a2ce7c70cd7c8fd2db0fb8e481
ofpbuf: Enable ofpbuf_push() to expand headroom.

Until now, ofpbuf_put() has been able to reallocate an ofpbuf to
expand the tailroom, but ofpbuf_push() has not been able to expand
the headroom in an analogous way.  This omission is simply because
it has never been useful to do this.  However, an upcoming change
will make the amount of headroom in an ofpbuf passed up from a
dpif to ofproto harder to predict.  It seems that we might as well
simply implement expanding headroom, so this commit does that.

Acked-by: Jesse Gross <jesse@nicira.com>
lib/ofpbuf.c