[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20100904042903.2655.97177.sendpatchset@jupiter1-ltc-lp2.austin.ibm.com>
Date: Fri, 03 Sep 2010 23:29:03 -0500
From: Santiago Leon <santil@...ux.vnet.ibm.com>
To: netdev@...r.kernel.org
Cc: brking@...ux.vnet.ibm.com,
Santiago Leon <santil@...ux.vnet.ibm.com>, anton@...ba.org
Subject: [patch 12/21] 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@...ba.org>
Signed-off-by: Santiago Leon <santil@...ux.vnet.ibm.com>
---
Index: net-next-2.6/drivers/net/ibmveth.c
===================================================================
--- net-next-2.6.orig//drivers/net/ibmveth.c 2010-09-03 22:19:05.000000000 -0500
+++ net-next-2.6/drivers/net/ibmveth.c 2010-09-03 22:19:06.000000000 -0500
@@ -251,7 +251,7 @@ static void ibmveth_replenish_buffer_poo
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");
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists