[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1291891816.4063.5.camel@edumazet-laptop>
Date: Thu, 09 Dec 2010 11:50:16 +0100
From: Eric Dumazet <eric.dumazet@...il.com>
To: "Govindarajan, Sriramakrishnan" <srk@...com>
Cc: "netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: Re: Adding Support for SG,GSO,GRO
Le jeudi 09 décembre 2010 à 16:03 +0530, Govindarajan, Sriramakrishnan a
écrit :
> Hi
> We have a NAPI compliant driver(net/drivers/davinci_emac.c), that does well at 10/100Mbps loads. Now the same controller/driver is used for 1000Mbps
> mode as well, where the CPU gets saturated easily
>
> Internally the module supports scatter gather DMA(which is currently not
> exercised) but there is no HW checksum support.
>
> To specifically implement GRO, GSO support would it be sufficient to add
> SG support to the driver? Are there other means of increasing the throughput
> and decreasing the CPU loading?
>
> Any pointers to reference implementation for adding SG/GRO/GSO support will be helpful.
Adding GRO is pretty easy, since you already are NAPI.
call
napi_gro_receive(&adapter->napi, skb)
instead of
netif_receive_skb(skb);
(
Take commit 6a08d194ee4080 as an example of such conversion
http://git.kernel.org/?p=linux/kernel/git/davem/net-next-2.6.git;a=commitdiff;h=6a08d194ee40806e0ccd5f36ed768e64cbfc979f
--
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