ibmveth: Convert to netdev_alloc_skb
authorSantiago Leon <santil@linux.vnet.ibm.com>
Fri, 3 Sep 2010 18:29:03 +0000 (18:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Sep 2010 01:21:51 +0000 (18:21 -0700)
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>
drivers/net/ibmveth.c

index 574f4d472551e1a6be663d61c4f268646efff388..5c7eb06e5bc77ef5aac6556d3aac76112447fabc 100644 (file)
@@ -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");