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