* [PATCH 4/5] net: use numa_node in net_devcice->dev instead of parent
[not found] <200708072246.l77MkCLZ008757@imap1.linux-foundation.org>
@ 2007-08-08 1:24 ` Yinghai Lu
0 siblings, 0 replies; 2+ messages in thread
From: Yinghai Lu @ 2007-08-08 1:24 UTC (permalink / raw)
To: akpm, ak; +Cc: apw, clameter, davem, greg, Linux Kernel Mailing List
[PATCH 4/5] net: use numa_node in net_devcice->dev instead of parent
Signed-off-by: Yinghai Lu <yinghai.lu@sun.com>
diff --git a/net/core/skbuff.c b/net/core/skbuff.c
index 27cfe5f..005cc1c 100644
--- a/net/core/skbuff.c
+++ b/net/core/skbuff.c
@@ -217,7 +217,7 @@ nodata:
struct sk_buff *__netdev_alloc_skb(struct net_device *dev,
unsigned int length, gfp_t gfp_mask)
{
- int node = dev->dev.parent ? dev_to_node(dev->dev.parent) : -1;
+ int node = dev_to_node(&dev->dev);
struct sk_buff *skb;
skb = __alloc_skb(length + NET_SKB_PAD, gfp_mask, 0, node);
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 4/5] net: use numa_node in net_devcice->dev instead of parent
@ 2007-07-26 20:05 Yinghai Lu
0 siblings, 0 replies; 2+ messages in thread
From: Yinghai Lu @ 2007-07-26 20:05 UTC (permalink / raw)
To: Andrew Morton, Andi Kleen, Christoph Lameter; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1 bytes --]
[-- Attachment #2: bus_numa_4.diff --]
[-- Type: text/x-patch, Size: 568 bytes --]
[PATCH 4/5] net: use numa_node in net_devcice->dev instead of parent
Signed-off-by: Yinghai Lu <yinghai.lu@sun.com>
diff --git a/net/core/skbuff.c b/net/core/skbuff.c
index 27cfe5f..005cc1c 100644
--- a/net/core/skbuff.c
+++ b/net/core/skbuff.c
@@ -217,7 +217,7 @@ nodata:
struct sk_buff *__netdev_alloc_skb(struct net_device *dev,
unsigned int length, gfp_t gfp_mask)
{
- int node = dev->dev.parent ? dev_to_node(dev->dev.parent) : -1;
+ int node = dev_to_node(&dev->dev);
struct sk_buff *skb;
skb = __alloc_skb(length + NET_SKB_PAD, gfp_mask, 0, node);
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-08-08 1:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <200708072246.l77MkCLZ008757@imap1.linux-foundation.org>
2007-08-08 1:24 ` [PATCH 4/5] net: use numa_node in net_devcice->dev instead of parent Yinghai Lu
2007-07-26 20:05 Yinghai Lu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®