Re: [PATCH 2/3] add numa node information to struct device

2006-11-15 Thread Andrew Morton
On Wed, 15 Nov 2006 18:37:01 +0100 Christoph Hellwig <[EMAIL PROTECTED]> wrote: > +#ifdef CONFIG_NUMA > +#define dev_to_node(dev) ((dev)->numa_node) > +#define set_dev_node(dev, node) ((dev)->numa_node = node) > +#else > +#define dev_to_node(dev) (-1) > +#define set_dev_node(dev, node

[PATCH 2/3] add numa node information to struct device

2006-11-15 Thread Christoph Hellwig
For node-aware skb allocations we need information about the node in struct net_device or struct device. Davem suggested to put it into struct device which this patch does. In particular: - struct device gets a new int numa_node member if CONFIG_NUMA is set - there are two new helpers, dev_to_