pkt_sched: fq: more robust memory allocation
authorEric Dumazet <edumazet@google.com>
Sun, 15 Dec 2013 21:15:25 +0000 (13:15 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Dec 2013 20:25:20 +0000 (15:25 -0500)
commitc3bd85495aef69e9df2e03a450a3a1f195c3867c
treefe8543f71cf8483c830a78d8dab7a3202e8b1f02
parente7ef941d3e2ea92d564a0bb9b35b1f392b3a171e
pkt_sched: fq: more robust memory allocation

This patch brings NUMA support and automatic fallback to vmalloc()
in case kmalloc() failed to allocate FQ hash table.

NUMA support depends on XPS being setup for the device before
qdisc allocation. After a XPS change, it might be worth creating
qdisc hierarchy again.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_fq.c