Using __get_free_pages() has some drawbacks : 1) Not NUMA aware 2) 2^X page granularity : On arches with big PAGE_SIZE, we waste some ram for each cpu. (We currently use 1024 pointers, that is at most 8192 bytes, but PAGE_SIZE can be 65536 for example : With say 64 possible cpus, thats about 56*64 Kbytes that are wasted) Using kmalloc_node() can help to solve these two points. Signed-off-by: Eric Dumazet net/core/flow.c | 15 +++++---------- 1 files changed, 5 insertions(+), 10 deletions(-)