aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ibmveth.c
diff options
context:
space:
mode:
authorSantiago Leon <santil@linux.vnet.ibm.com>2010-09-03 14:29:03 -0400
committerDavid S. Miller <davem@davemloft.net>2010-09-06 21:21:51 -0400
commit003212cc599cdc006de486e28c1f6b327bcb9808 (patch)
tree9174a37ccd0e1557116d15d981f7425c92462469 /drivers/net/ibmveth.c
parentd2684b516020c162b2852a2171ec588713c6cec0 (diff)
ibmveth: Convert to netdev_alloc_skb
We were using alloc_skb which doesn't create any headroom. Change it to use netdev_alloc_skb to match most other drivers. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Santiago Leon <santil@linux.vnet.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ibmveth.c')
-rw-r--r--drivers/net/ibmveth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ibmveth.c b/drivers/net/ibmveth.c
index 574f4d472551..5c7eb06e5bc7 100644
--- a/drivers/net/ibmveth.c
+++ b/drivers/net/ibmveth.c
@@ -251,7 +251,7 @@ static void ibmveth_replenish_buffer_pool(struct ibmveth_adapter *adapter, struc
251 for(i = 0; i < count; ++i) { 251 for(i = 0; i < count; ++i) {
252 union ibmveth_buf_desc desc; 252 union ibmveth_buf_desc desc;
253 253
254 skb = alloc_skb(pool->buff_size, GFP_ATOMIC); 254 skb = netdev_alloc_skb(adapter->netdev, pool->buff_size);
255 255
256 if(!skb) { 256 if(!skb) {
257 ibmveth_debug_printk("replenish: unable to allocate skb\n"); 257 ibmveth_debug_printk("replenish: unable to allocate skb\n");