Correct the old comment like ofpbuf_reserve to descript the expected behavior of ofpbuf_reserve_with_tailroom
Signed-off-by: Wang Sheng-Hui <shh...@gmail.com> --- lib/ofpbuf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/ofpbuf.c b/lib/ofpbuf.c index 198bbf6..c0cf144 100644 --- a/lib/ofpbuf.c +++ b/lib/ofpbuf.c @@ -429,8 +429,9 @@ ofpbuf_reserve(struct ofpbuf *b, size_t size) ofpbuf_set_data(b, (char*)ofpbuf_data(b) + size); } -/* Reserves 'size' bytes of headroom so that they can be later allocated with - * ofpbuf_push_uninit() without reallocating the ofpbuf. */ +/* Reserves 'headroom' bytes at the head and 'tailroom' at the end so that + * they can be later allocated with ofpbuf_push_uninit() or + * ofpbuf_put_uninit() without reallocating the ofpbuf. */ void ofpbuf_reserve_with_tailroom(struct ofpbuf *b, size_t headroom, size_t tailroom) -- 1.8.3.2 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev