[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <78C9135A3D2ECE4B8162EBDCE82CAD77065BC991@nekter>
Date: Thu, 1 Apr 2010 18:05:23 -0400
From: "Ramkrishna Vepa" <Ramkrishna.Vepa@...r.com>
To: "David Miller" <davem@...emloft.net>,
"Sreenivasa Honnur" <Sreenivasa.Honnur@...erion.com>
Cc: <netdev@...r.kernel.org>
Subject: RE: [net-next-2.6 PATCH 3/8] vxge: Align the memory only if it is misaligned.
> If you want to allocate 4K chunks and make sure they are at least 128
> byte aligned, you can allocated pages (which are always PAGE_SIZE
> aligned) and chop them up into the appropriate block size as needed.
>
> This is exactly how drivers/net/niu.c handles this situation.
>
> See drivers/net/niu.c:niu_rbr_add_page()
Thanks Dave! There's quite a bit of change required in the driver for
this. We'll submit the current set of patches we are working on and then
look into submitting this change.
Ram
--
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