Commit b02038a1 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller

xps: NUMA allocations for per cpu data

store_xps_map() allocates maps that are used by single cpu, it makes
sense to use NUMA allocations.
Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Cc: Tom Herbert <therbert@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 49b4a654
...@@ -956,8 +956,9 @@ static ssize_t store_xps_map(struct netdev_queue *queue, ...@@ -956,8 +956,9 @@ static ssize_t store_xps_map(struct netdev_queue *queue,
if (map_len >= alloc_len) { if (map_len >= alloc_len) {
alloc_len = alloc_len ? alloc_len = alloc_len ?
2 * alloc_len : XPS_MIN_MAP_ALLOC; 2 * alloc_len : XPS_MIN_MAP_ALLOC;
new_map = kzalloc(XPS_MAP_SIZE(alloc_len), new_map = kzalloc_node(XPS_MAP_SIZE(alloc_len),
GFP_KERNEL); GFP_KERNEL,
cpu_to_node(cpu));
if (!new_map) if (!new_map)
goto error; goto error;
new_map->alloc_len = alloc_len; new_map->alloc_len = alloc_len;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment