[ovs-dev] [PATCH] csum: Inline csum_add16(), csum_add32().
Ben Pfaff
blp at ovn.org
Tue Dec 1 18:15:23 UTC 2015
On Tue, Dec 01, 2015 at 02:30:44PM -0200, Thadeu Lima de Souza Cascardo wrote:
> On Mon, Nov 30, 2015 at 08:00:14PM -0800, Ben Pfaff wrote:
> > 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.
> >
> > Signed-off-by: Ben Pfaff <blp at ovn.org>
> > ---
> > lib/csum.c | 22 +---------------------
> > lib/csum.h | 27 ++++++++++++++++++++++++---
> > 2 files changed, 25 insertions(+), 24 deletions(-)
> >
>
> Acked-by: Thadeu Lima de Souza Cascardo <cascardo at redhat.com>
Thanks, applied to master.
More information about the dev
mailing list