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>
This commit is contained in:
committed by
David S. Miller
parent
d2684b5160
commit
003212cc59
@@ -251,7 +251,7 @@ static void ibmveth_replenish_buffer_pool(struct ibmveth_adapter *adapter, struc
|
|||||||
for(i = 0; i < count; ++i) {
|
for(i = 0; i < count; ++i) {
|
||||||
union ibmveth_buf_desc desc;
|
union ibmveth_buf_desc desc;
|
||||||
|
|
||||||
skb = alloc_skb(pool->buff_size, GFP_ATOMIC);
|
skb = netdev_alloc_skb(adapter->netdev, pool->buff_size);
|
||||||
|
|
||||||
if(!skb) {
|
if(!skb) {
|
||||||
ibmveth_debug_printk("replenish: unable to allocate skb\n");
|
ibmveth_debug_printk("replenish: unable to allocate skb\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user