csum: Inline csum_add16(), csum_add32().
authorBen Pfaff <blp@ovn.org>
Tue, 1 Dec 2015 04:00:14 +0000 (20:00 -0800)
committerBen Pfaff <blp@ovn.org>
Tue, 1 Dec 2015 18:14:10 +0000 (10:14 -0800)
These two functions are really simple, to the point that inlining them
yields less code than calling them: with GCC 4.9 on i386, this change
reduces the code generated for packet_csum_pseudoheader() from 112 bytes
to 100 bytes.

I didn't measure whether there is a performance improvement.

Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Thadeu Lima de Souza Cascardo <cascardo@redhat.com>

No differences found