All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ieee1394: first minimal NUMA awareness
@ 2007-07-08 11:34 Stefan Richter
  0 siblings, 0 replies; only message in thread
From: Stefan Richter @ 2007-07-08 11:34 UTC (permalink / raw)
  To: linux1394-devel; +Cc: netdev

Association of a host device with a node on NUMA machines optimizes
allocations of skbs given from the networking stack to eth1394.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
---

Note, in Linux 2.6.20 and earlier and 2.6.23 and later, eth1394 calls
or will call SET_NETDEV_DEV(eth1394_netdev, &h->device).

 drivers/ieee1394/hosts.c |    1 +
 1 file changed, 1 insertion(+)

Index: linux-2.6.22-rc7/drivers/ieee1394/hosts.c
===================================================================
--- linux-2.6.22-rc7.orig/drivers/ieee1394/hosts.c
+++ linux-2.6.22-rc7/drivers/ieee1394/hosts.c
@@ -154,6 +154,7 @@ struct hpsb_host *hpsb_alloc_host(struct
 
 	memcpy(&h->device, &nodemgr_dev_template_host, sizeof(h->device));
 	h->device.parent = dev;
+	set_dev_node(&h->device, dev_to_node(dev));
 	snprintf(h->device.bus_id, BUS_ID_SIZE, "fw-host%d", h->id);
 
 	h->host_dev.parent = &h->device;

-- 
Stefan Richter
-=====-=-=== -=== -=---
http://arcgraph.de/sr/


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-07-08 11:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-08 11:34 [PATCH] ieee1394: first minimal NUMA awareness Stefan Richter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.