Skip to contentSkip to conversation

- net-use-numa_node-in-net_devcice-dev-instead-of-parent.patch removed from -mm tree

PATCH In review [email protected] 2 participants 2 messages Aug 7, 2007 – Aug 8, 2007 Networking

lore
Share & tools
lore

[email protected]

author tree notice
#0 lore raw

The patch titled

     net: use numa_node in net_devcice->dev instead of parent

has been removed from the -mm tree. Its filename was
net-use-numa_node-in-net_devcice-dev-instead-of-parent.patch

This patch was dropped because finish-i386-and-x86-64-sysdata-conversion.patch might have destroyed it

------------------------------------------------------
Subject: net: use numa_node in net_devcice->dev instead of parent
From: "Yinghai Lu" <[email protected]>

Cc Andi Kleen <[email protected]>
Cc Andy Whitcroft <[email protected]>
Cc Greg KH <[email protected]>
Cc Christoph Lameter <[email protected]>
Cc "David S. Miller" <[email protected]>

---

 net/core/skbuff.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/core/skbuff.c renamed from net/core/skbuff.c~net-use-numa_node-in-net_devcice-dev-instead-of-parent +1 -1
diff -puN net/core/skbuff.c~net-use-numa_node-in-net_devcice-dev-instead-of-parent net/core/skbuff.c
@@ -252,7 +252,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);

_

Patches currently in -mm which might be from [email protected] are

finish-i386-and-x86-64-sysdata-conversion.patch net-use-numa_node-in-net_devcice-dev-instead-of-parent.patch dma-use-dev_to_node-to-get-node-for-device-in-dma_alloc_pages.patch x86_64-store-core-id-bits-in-cpuinfo_x8.patch x86_64-use-core-id-bits-for-apicid_to_node-initialization.patch x86_64-remove-never-used-apic_mapped.patch x86_64-get-boot_cpu_id-as-early-for-k8_scan_nodes.patch

#1 lore raw

PATCH 4/5 net: use numa_node in net_devcice->dev instead of parent

[PATCH 4/5] net: use numa_node in net_devcice->dev instead of parent

net/core/skbuff.c +1 -1
index 27cfe5f..005cc1c 100644
@@ -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);