From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Hutchings Subject: Re: [PATCH 2/4 net-next] tg3: provide frags as skb head Date: Fri, 27 Apr 2012 17:53:03 +0100 Message-ID: <1335545583.2618.52.camel@bwh-desktop.uk.solarflarecom.com> References: <1335522889.2775.231.camel@edumazet-glaptop> <1335544386.2618.50.camel@bwh-desktop.uk.solarflarecom.com> <1335544964.2775.250.camel@edumazet-glaptop> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: David Miller , netdev , Ilpo =?ISO-8859-1?Q?J=E4rvinen?= , Tom Herbert , Neal Cardwell , Matt Carlson , Jeff Kirsher , Michael Chan , Herbert Xu , Maciej =?UTF-8?Q?=C5=BBenczykowski?= To: Eric Dumazet Return-path: Received: from webmail.solarflare.com ([12.187.104.25]:61185 "EHLO ocex02.SolarFlarecom.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1760451Ab2D0QxJ (ORCPT ); Fri, 27 Apr 2012 12:53:09 -0400 In-Reply-To: <1335544964.2775.250.camel@edumazet-glaptop> Sender: netdev-owner@vger.kernel.org List-ID: On Fri, 2012-04-27 at 18:42 +0200, Eric Dumazet wrote: > On Fri, 2012-04-27 at 17:33 +0100, Ben Hutchings wrote: > > > page_address() may return NULL if CONFIG_HIGHMEM is enabled. And that's > > going to be a general problem with this scheme on 32-bit machines. > > kmalloc(2048, GFP_ATOMIC) and alloc_page(GFP_ATOMIC) uses the same pool > of LOWMEM pages, so there is no difference here. page_address() is > guaranteed to work. Oh, of course, GFP_HIGH is not GFP_HIGHMEM... Ben. -- Ben Hutchings, Staff Engineer, Solarflare Not speaking for my employer; that's the marketing department's job. They asked us to note that Solarflare product names are trademarked.