diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2022-02-16 21:16:16 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-02-17 20:04:06 -0800 |
commit | 60f8ad2392d03d250f6d381e382f7c838cd5ec11 (patch) | |
tree | 52b6bccffa50d08008ae21e201855ef792c5d3ad /tools/hv/hv_get_dns_info.sh | |
parent | 6b48bece871e27ad18ae6df6090a71408d5c1b17 (diff) | |
download | linux-60f8ad2392d03d250f6d381e382f7c838cd5ec11.tar.gz linux-60f8ad2392d03d250f6d381e382f7c838cd5ec11.tar.bz2 linux-60f8ad2392d03d250f6d381e382f7c838cd5ec11.zip |
net: ll_temac: Use GFP_KERNEL instead of GFP_ATOMIC when possible
XTE_MAX_JUMBO_FRAME_SIZE is over 9000 bytes and the default value for
'rx_bd_num' is RX_BD_NUM_DEFAULT (i.e. 1024)
So this loop allocates more than 9 Mo of memory.
Previous memory allocations in this function already use GFP_KERNEL, so
use __netdev_alloc_skb_ip_align() and an explicit GFP_KERNEL instead of a
implicit GFP_ATOMIC.
This gives more opportunities of successful allocation.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/694abd65418b2b3974106a82d758e3474c65ae8f.1645042560.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/hv/hv_get_dns_info.sh')
0 files changed, 0 insertions, 0 deletions