[ovs-git] [openvswitch/ovs] d6c1bc: csum: Inline csum_add16(), csum_add32().

GitHub noreply at github.com
Tue Dec 1 18:15:06 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: d6c1bc0dcb70dc7c467d2f1fe2b2cbd3c3c8a69d
      https://github.com/openvswitch/ovs/commit/d6c1bc0dcb70dc7c467d2f1fe2b2cbd3c3c8a69d
  Author: Ben Pfaff <blp at ovn.org>
  Date:   2015-12-01 (Tue, 01 Dec 2015)

  Changed paths:
    M lib/csum.c
    M lib/csum.h

  Log Message:
  -----------
  csum: Inline csum_add16(), csum_add32().

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 at ovn.org>
Acked-by: Thadeu Lima de Souza Cascardo <cascardo at redhat.com>




More information about the git mailing list