]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_en: try to use high order pages for RX rings
authorEric Dumazet <edumazet@google.com>
Tue, 6 Mar 2018 19:12:53 +0000 (11:12 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Mar 2018 18:35:23 +0000 (13:35 -0500)
commiteaac4ad0020abb2284e25ebce9481db31cdb90c9
treeb55e4feec8a7ec1863fd33ed589f732d36dfc6a9
parent0b8e5e51a2c004b86a49f7243cdde3871c3f4297
net/mlx4_en: try to use high order pages for RX rings

RX rings can fit most of the time in a contiguous piece of memory,
so lets use kvzalloc_node/kvfree instead of vzalloc_node/vfree

Note that kvzalloc_node() automatically falls back to another node,
there is no need to do the fallback ourselves.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_rx.c