net sched: use xps information for qdisc NUMA affinity
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 29 Nov 2010 08:14:37 +0000 (08:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Dec 2010 20:47:42 +0000 (12:47 -0800)
Allocate qdisc memory according to NUMA properties of cpus included in
xps map.

To be effective, qdisc should be (re)setup after changes
of /sys/class/net/eth<n>/queues/tx-<n>/xps_cpus

I added a numa_node field in struct netdev_queue, containing NUMA node
if all cpus included in xps_cpus share same node, else -1.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Ben Hutchings <bhutchings@solarflare.com>
Cc: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found