]> 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)
commita09cb7698926945633d04ff9b13063aa4923b654
treefe8543f71cf8483c830a78d8dab7a3202e8b1f02
parentceaddf14d38e6bcab50a2663e8778158794daf77
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