New function ofpbuf_trim(), for freeing up wasted space in ofpbufs.
authorBen Pfaff <blp@nicira.com>
Thu, 19 Mar 2009 17:39:32 +0000 (10:39 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 19 Mar 2009 18:18:53 +0000 (11:18 -0700)
commita9a3782efc059744fd7e6b5bf29b1f7fb8da3c18
treeba415da789a2f5d98b3ebc07e00728c4c7b95a8f
parent9265d75e35ee9f748f5e392c828489153693ffe6
New function ofpbuf_trim(), for freeing up wasted space in ofpbufs.

The dpif code will start allocating 64 kB buffers in the next commit,
since sometimes we get packets that big under virtualization.  But we
need to trim them down if we're going to store them for any time, so
we need a function to do it.
lib/ofpbuf.c
lib/ofpbuf.h