Re: [PATCH net] mlx4: reduce OOM risk on arches with large pages

2017-02-20 Thread David Miller
From: Eric Dumazet Date: Sat, 18 Feb 2017 10:34:18 -0800 > From: Eric Dumazet > > Since mlx4 NIC are used on PowerPC with 64K pages, we need to adapt > MLX4_EN_ALLOC_PREFER_ORDER definition. > > Otherwise, a fragment sitting in an out of order TCP

Re: [PATCH net] mlx4: reduce OOM risk on arches with large pages

2017-02-20 Thread Tariq Toukan
On 18/02/2017 8:34 PM, Eric Dumazet wrote: From: Eric Dumazet Since mlx4 NIC are used on PowerPC with 64K pages, we need to adapt MLX4_EN_ALLOC_PREFER_ORDER definition. Otherwise, a fragment sitting in an out of order TCP queue can hold 0.5 Mbytes and it is a serious

[PATCH net] mlx4: reduce OOM risk on arches with large pages

2017-02-18 Thread Eric Dumazet
From: Eric Dumazet Since mlx4 NIC are used on PowerPC with 64K pages, we need to adapt MLX4_EN_ALLOC_PREFER_ORDER definition. Otherwise, a fragment sitting in an out of order TCP queue can hold 0.5 Mbytes and it is a serious OOM risk. Fixes: 51151a16a60f ("mlx4: allow