lib/ofpbuf: Inline the trivial ofpbuf functions.
authorJarno Rajahalme <jrajahalme@nicira.com>
Tue, 25 Mar 2014 22:26:23 +0000 (15:26 -0700)
committerJarno Rajahalme <jrajahalme@nicira.com>
Tue, 25 Mar 2014 22:26:23 +0000 (15:26 -0700)
commitd8b352b3e111615b0c1961704138748c6a71c204
tree8ecfb21f546d69d7b1783a5acbcf34447134f2e6
parentba3f2aedba884a7d1ce74da5e0fe1691ff0c2539
lib/ofpbuf: Inline the trivial ofpbuf functions.

Inline the most trivial ofpbuf functions to allow for better optimization.
Also inline the most often used ofpbuf_pull() and ofpbuf_try_pull(), which
should help streamline packet parsing.

Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/ofpbuf.c
lib/ofpbuf.h