diff options
| author | Jun'ichi Nomura <[email protected]> | 2021-02-09 08:24:52 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2021-02-13 00:11:26 +0100 |
| commit | 7d4553b69fb335496c597c31590e982485ebe071 (patch) | |
| tree | 02eb509754ac0562d8b0c7d3746d1731cdf69241 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 17d8beda277a36203585943e70c7909b60775fd5 (diff) | |
bpf, devmap: Use GFP_KERNEL for xdp bulk queue allocation
The devmap bulk queue is allocated with GFP_ATOMIC and the allocation
may fail if there is no available space in existing percpu pool.
Since commit 75ccae62cb8d42 ("xdp: Move devmap bulk queue into struct net_device")
moved the bulk queue allocation to NETDEV_REGISTER callback, whose context
is allowed to sleep, use GFP_KERNEL instead of GFP_ATOMIC to let percpu
allocator extend the pool when needed and avoid possible failure of netdev
registration.
As the required alignment is natural, we can simply use alloc_percpu().
Fixes: 75ccae62cb8d42 ("xdp: Move devmap bulk queue into struct net_device")
Signed-off-by: Jun'ichi Nomura <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Cc: Toke Høiland-Jørgensen <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions