Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1345522 > unrolled thread

Re: [PATCH 4/9] powerpc: inline ip_fast_csum()

Started byChristophe Leroy <christophe.leroy@c-s.fr>
First post2016-02-29 08:30 +0100
Last post2016-02-29 08:30 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 4/9] powerpc: inline ip_fast_csum() Christophe Leroy <christophe.leroy@c-s.fr> - 2016-02-29 08:30 +0100

#1345522 — Re: [PATCH 4/9] powerpc: inline ip_fast_csum()

FromChristophe Leroy <christophe.leroy@c-s.fr>
Date2016-02-29 08:30 +0100
SubjectRe: [PATCH 4/9] powerpc: inline ip_fast_csum()
Message-ID<r7qrg-8lp-7@gated-at.bofh.it>

Le 23/09/2015 07:43, Denis Kirjanov a écrit :
> On 9/22/15, Christophe Leroy <christophe.leroy@c-s.fr> wrote:
>> In several architectures, ip_fast_csum() is inlined
>> There are functions like ip_send_check() which do nothing
>> much more than calling ip_fast_csum().
>> Inlining ip_fast_csum() allows the compiler to optimise better
> Hi Christophe,
> I did try it and see no difference on ppc64. Did you test with socklib
> with modified loopback and if so do you have any numbers?

Hi Denis,

I put a mftbl at start and end of ip_send_check() and tested on a MPC885:
* Without ip_fast_csum() inlined, approxymatly 7 TB ticks are spent in 
ip_send_check()
* With ip_fast_csum() inlined, approxymatly 5,4 TB ticks are spent in 
ip_send_check()

So it is about 23% time reduction.

Christophe

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web