From: Santiago Leon Date: Fri, 3 Sep 2010 18:29:03 +0000 (+0000) Subject: ibmveth: Convert to netdev_alloc_skb X-Git-Tag: v2.6.37-rc1~147^2~554 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=003212cc599cdc006de486e28c1f6b327bcb9808;p=platform%2Fupstream%2Fkernel-adaptation-pc.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 574f4d4..5c7eb06e 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");