]> git.baikalelectronics.ru Git - kernel.git/commit
mlx4: support __GFP_MEMALLOC for rx
authorEric Dumazet <edumazet@google.com>
Wed, 18 Jan 2017 04:14:10 +0000 (20:14 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Jan 2017 04:35:12 +0000 (23:35 -0500)
commitc521d617ce48fdac38c7d2cef78ea7dbe0865786
tree0ac33425cc041adedca5010a1c54702f8447d2cb
parent73a6b8f9876b554f96b5b5a912091fd2718081e8
mlx4: support __GFP_MEMALLOC for rx

Commit 4e4ddad45a17 ("net/mlx4_en: allocate non 0-order pages for RX
ring with __GFP_NOMEMALLOC") added code that appears to be not needed at
that time, since mlx4 never used __GFP_MEMALLOC allocations anyway.

As using memory reserves is a must in some situations (swap over NFS or
iSCSI), this patch adds this flag.

Note that this driver does not reuse pages (yet) so we do not have to
add anything else.

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