]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9f7a17ee9851056872b70ff3908fe3ab9365dab2
treefe8543f71cf8483c830a78d8dab7a3202e8b1f02
parentf32665532e9940e1055319b88e64b4bb79ce72d4
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