From: Roland Dreier Date: Wed, 12 Mar 2008 14:51:03 +0000 (-0700) Subject: IPoIB: Allocate priv->tx_ring with vmalloc() X-Git-Tag: v2.6.25-rc6~15^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10313cbb92206450b450e14f2b3f6ccde42d9a34;p=pandora-kernel.git IPoIB: Allocate priv->tx_ring with vmalloc() 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. Signed-off-by: Roland Dreier --- Reading git-diff-tree failed