diff options
author | 2008-03-12 07:51:03 -0700 | |
---|---|---|
committer | 2008-03-12 07:51:03 -0700 | |
commit | 10313cbb92206450b450e14f2b3f6ccde42d9a34 (patch) | |
tree | 6e10b1066fcb3f3a699960c62535f0cbea240738 /scripts/mod/file2alias.c | |
parent | IPoIB/cm: Set tx_wr.num_sge in connected mode post_send() (diff) | |
download | wireguard-linux-10313cbb92206450b450e14f2b3f6ccde42d9a34.tar.xz wireguard-linux-10313cbb92206450b450e14f2b3f6ccde42d9a34.zip |
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 <rolandd@cisco.com>
Diffstat (limited to 'scripts/mod/file2alias.c')
0 files changed, 0 insertions, 0 deletions