[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Thu, 26 Aug 2010 22:03:18 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: netdev@...r.kernel.org, herbert@...dor.apana.org.au
Subject: Re: [PATCH net-next-2.6 v4] gro: __napi_gro_receive() optimizations
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Fri, 27 Aug 2010 07:01:34 +0200
> compare_ether_header() can have a special implementation on 64 bit
> arches if CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS is defined.
>
> __napi_gro_receive() and vlan_gro_common() can avoid a conditional
> branch to perform device match.
>
> On x86_64, __napi_gro_receive() has now 38 instructions instead of 53
>
> As gcc-4.4.3 still choose to not inline it, add inline keyword to this
> performance critical function.
>
> Signed-off-by: Eric Dumazet <eric.dumazet@...il.com>
> CC: Herbert Xu <herbert@...dor.apana.org.au>
Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists