netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] myri10ge: use physical pages for skb allocation
@ 2006-10-25 13:28 Brice Goglin
  2006-10-25 13:29 ` [PATCH 1/1] " Brice Goglin
  0 siblings, 1 reply; 3+ messages in thread
From: Brice Goglin @ 2006-10-25 13:28 UTC (permalink / raw)
  To: Jeff Garzik, netdev

The following patch reworks the myri10ge driver to use physical pages for skb allocation. A similar patch has been submitted about a month ago within our LRO patches. The LRO code won't be sent here since we are waiting for the core stack to implement a generic LRO.

Please consider this single patch for 2.6.20.

As explained previously, the complete driver code in our CVS also supports high-order allocations instead of single physical pages since it significantly increase the performance. But, since high-order allocations are generally considered a bad idea, we do not include the relevant code in the following patch for inclusion in Linux. Here, we simply pass order=0 to all page allocation routines.

Thanks,
Brice



^ permalink raw reply	[flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] myri10ge: use physical pages for skb allocation
@ 2006-11-15 22:40 Brice Goglin
  0 siblings, 0 replies; 3+ messages in thread
From: Brice Goglin @ 2006-11-15 22:40 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: netdev

Hi Jeff,

It looks like you didn't apply this patch to #upstream for 2.6.20 so far. We would really like to get ith in 2.6.20 (we already missed 2.6.19 by a couple days :)). But, I guess we need some testing in -mm first, so...

thanks,
Brice





Brice Goglin wrote:
> Physical pages are used instead of 16kB contiguous buffers for the
> skb frags. And we also put as much fragments as possible in any page
> so that we do not have to allocate a page for every fragments.
>
> Signed-off-by: Brice Goglin <brice@myri.com>
> Signed-off-by: Andrew J. Gallatin <gallatin@myri.com>
> ---
>  drivers/net/myri10ge/myri10ge.c |  499 ++++++++++++++++++++--------------------
>  1 file changed, 254 insertions(+), 245 deletions(-)
>   


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-11-15 22:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-25 13:28 [PATCH 0/1] myri10ge: use physical pages for skb allocation Brice Goglin
2006-10-25 13:29 ` [PATCH 1/1] " Brice Goglin
  -- strict thread matches above, loose matches on Subject: below --
2006-11-15 22:40 Brice Goglin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).