Re: [0/14] GRO: Lots of microoptimisations

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Benjamin LaHaise
Date: Thursday, May 28, 2009 - 8:21 am

On Thu, May 28, 2009 at 09:08:58AM +1000, Herbert Xu wrote:

With GRO off I'm getting ~4.7-5Gbps to the receiver which is CPU bound with 
netperf.  With GRO on, that drops to ~3.9-4.3Gbps.  The only real difference 
is the entry point into the net code being napi_gro_receive() vs 
netif_receive_skb().


We have a few bits in the hardware descriptor which indicate if the packet 
is TCP or UDP, IPv4 or IPv6, as well as whether TCP packets are fast path 
eligible.  The hardware can also split up the headers to place the ethernet 
MAC, IP and payload in separate buffers.  I plan to run a few tests to see 
if dispatching directly from the driver into the TCP fast path makes much 
difference.

		-ben
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[0/14] GRO: Lots of microoptimisations, Herbert Xu, (Tue May 26, 9:45 pm)
Re: [0/14] GRO: Lots of microoptimisations, David Miller, (Wed May 27, 3:42 am)
Re: [0/14] GRO: Lots of microoptimisations, Benjamin LaHaise, (Wed May 27, 10:52 am)
Re: [0/14] GRO: Lots of microoptimisations, Herbert Xu, (Wed May 27, 4:08 pm)
Re: [0/14] GRO: Lots of microoptimisations, Benjamin LaHaise, (Thu May 28, 8:21 am)
Re: [0/14] GRO: Lots of microoptimisations, Herbert Xu, (Fri May 29, 2:28 am)
Re: [0/14] GRO: Lots of microoptimisations, Herbert Xu, (Fri May 29, 2:29 am)
Re: [0/14] GRO: Lots of microoptimisations, Benjamin LaHaise, (Fri May 29, 9:23 am)
Re: [0/14] GRO: Lots of microoptimisations, Herbert Xu, (Tue Jun 9, 10:44 pm)
Re: [0/14] GRO: Lots of microoptimisations, Benjamin LaHaise, (Fri Jun 12, 9:09 am)
Re: [0/14] GRO: Lots of microoptimisations, David Miller, (Fri Jun 12, 4:48 pm)
Re: [0/14] GRO: Lots of microoptimisations, Benjamin LaHaise, (Tue Jun 16, 9:35 am)
Re: [0/14] GRO: Lots of microoptimisations, Herbert Xu, (Tue Jun 16, 9:38 am)
Re: [0/14] GRO: Lots of microoptimisations, Herbert Xu, (Wed Jun 17, 1:07 am)
Re: [0/14] GRO: Lots of microoptimisations, Herbert Xu, (Wed Jun 17, 1:08 am)
Re: [0/14] GRO: Lots of microoptimisations, Rick Jones, (Wed Jun 17, 1:14 pm)