* [PATCH] spidernet: user netdev_alloc_skb
@ 2006-10-30 14:07 Christoph Hellwig
0 siblings, 0 replies; only message in thread
From: Christoph Hellwig @ 2006-10-30 14:07 UTC (permalink / raw)
To: jim; +Cc: netdev
Signed-off-by: Christoph Hellwig <hch@lst.de>
Index: linux-2.6/drivers/net/spider_net.c
===================================================================
--- linux-2.6.orig/drivers/net/spider_net.c 2006-10-23 17:20:14.000000000 +0200
+++ linux-2.6/drivers/net/spider_net.c 2006-10-30 13:27:48.000000000 +0100
@@ -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");
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-10-30 14:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-30 14:07 [PATCH] spidernet: user netdev_alloc_skb Christoph Hellwig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).