[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20101206.130101.28800569.davem@davemloft.net>
Date: Mon, 06 Dec 2010 13:01:01 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: xiaosuo@...il.com
Cc: eric.dumazet@...il.com, jpirko@...hat.com, nhorman@...driver.com,
netdev@...r.kernel.org
Subject: Re: [PATCH v2 1/2] af_packet: use vmalloc_to_page() instead for
the addresss returned by vmalloc()
From: Changli Gao <xiaosuo@...il.com>
Date: Wed, 1 Dec 2010 20:52:20 +0800
> The following commit causes the pgv->buffer may point to the memory
> returned by vmalloc(). And we can't use virt_to_page() for the vmalloc
> address.
>
> This patch introduces a new inline function pgv_to_page(), which calls
> vmalloc_to_page() for the vmalloc address, and virt_to_page() for the
> __get_free_pages address.
>
> We used to increase page pointer to get the next page at the next page
> address, after Neil's patch, it is wrong, as the physical address may
> be not continuous. This patch also fixes this issue.
>
> commit 0e3125c755445664f00ad036e4fc2cd32fd52877
> Author: Neil Horman <nhorman@...driver.com>
> Date: Tue Nov 16 10:26:47 2010 -0800
>
> packet: Enhance AF_PACKET implementation to not require high order contiguous memory allocation (v4)
>
> Signed-off-by: Changli Gao <xiaosuo@...il.com>
Applied.
--
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