From: Santiago Leon Date: Fri, 3 Sep 2010 18:29:03 +0000 (+0000) Subject: ibmveth: Convert to netdev_alloc_skb X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=003212cc599cdc006de486e28c1f6b327bcb9808;p=linux-beck.git 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 Signed-off-by: Santiago Leon Signed-off-by: David S. Miller --- 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 for(i = 0; i < count; ++i) { union ibmveth_buf_desc desc; - skb = alloc_skb(pool->buff_size, GFP_ATOMIC); + skb = netdev_alloc_skb(adapter->netdev, pool->buff_size); if(!skb) { ibmveth_debug_printk("replenish: unable to allocate skb\n");