]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_en: allocate non 0-order pages for RX ring with __GFP_NOMEMALLOC
authorKonstantin Khlebnikov <khlebnikov@yandex-team.ru>
Mon, 18 Apr 2016 11:33:54 +0000 (14:33 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Apr 2016 00:04:24 +0000 (20:04 -0400)
commita2e8c5f468e9651582a3226d2680128ba8b21ed7
tree513eb72cba69ae4d875e8aeb21088e45ef1ce711
parent7a53503a052654fc76ae2cc0b1102290f2532974
net/mlx4_en: allocate non 0-order pages for RX ring with __GFP_NOMEMALLOC

High order pages are optional here since commit 507240b469dd ("mlx4: allow
order-0 memory allocations in RX path"), so here is no reason for depleting
reserves. Generic __netdev_alloc_frag() implements the same logic.

Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_rx.c