[ofa-general] [PATCH/RFC] IPoIB: Allocate priv->tx_ring with vmalloc()
Jack Morgenstein
jackm at dev.mellanox.co.il
Tue Mar 11 23:38:27 PDT 2008
On Wednesday 12 March 2008 05:20, Roland Dreier wrote:
> Commit 7143740d ("IPoIB: Add send gather support") made struct
> ipoib_tx_buf significantly larger, since the mapping member changed
> from a single u64 to an array with MAX_SKB_FRAGS + 1 entries. This
> means that allocating tx_rings with kzalloc() may fail because there
> is not enough contiguous memory for the new, much bigger size. Fix
> this regression by allocating the rings with vmalloc() instead.
>
I think that this patch should be limited to 64-bit systems only.
On 32-bit systems, kernel virtual memory is very limited. Won't
this cause problems on 32-bit systems?
- Jack
More information about the general
mailing list