Skip to contentSkip to conversation

spidernet: node-aware skbuff allocation

PATCH New Christoph Hellwig 1 participant 1 message May 16, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spidernet: node-aware skbuff allocation

Spidernet was the driver I original did all the node-aware netdevice allocation for, but after a year it still hasn't hit mainline.

So here's the patch again:

drivers/net/spider_net.c +2 -1
Index: linux-2.6/drivers/net/spider_net.c
===================================================================
@@ -395,7 +395,8 @@
 	/* and we need to have it 128 byte aligned, therefore we allocate a
 	 * bit more */
 	/* allocate an skb */
-	descr->skb = dev_alloc_skb(bufsize + SPIDER_NET_RXBUF_ALIGN - 1);
+	descr->skb = netdev_alloc_skb(card->netdev,
+				      bufsize + SPIDER_NET_RXBUF_ALIGN - 1);
 	if (!descr->skb) {
 		if (netif_msg_rx_err(card) && net_ratelimit())
 			pr_err("Not enough memory to allocate rx buffer\n");