Skip to content

Commit 04aeb56

Browse files
koct9idavem330
authored andcommitted
net/mlx4_en: allocate non 0-order pages for RX ring with __GFP_NOMEMALLOC
High order pages are optional here since commit 51151a1 ("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 <[email protected]> Acked-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent ab2ed01 commit 04aeb56

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/mellanox/mlx4

1 file changed

+1
-1
lines changed

drivers/net/ethernet/mellanox/mlx4/en_rx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ static int mlx4_alloc_pages(struct mlx4_en_priv *priv,
6161
gfp_t gfp = _gfp;
6262

6363
if (order)
64-
gfp |= __GFP_COMP | __GFP_NOWARN;
64+
gfp |= __GFP_COMP | __GFP_NOWARN | __GFP_NOMEMALLOC;
6565
page = alloc_pages(gfp, order);
6666
if (likely(page))
6767
break;

0 commit comments

Comments
 (0)