mlx5_core: Change optimal_reclaimed_pages for better performance
authorMoshe Lazer <moshel@mellanox.com>
Wed, 23 Oct 2013 06:53:21 +0000 (09:53 +0300)
committerRoland Dreier <roland@purestorage.com>
Fri, 8 Nov 2013 22:43:00 +0000 (14:43 -0800)
commit4e3d677ba986d5c8e76ee1742c1d4d79bc197d5c
tree2c596d00eb15ceb6af5317820f62021cb37f327e
parent87b8de492da34942fc554f2958a570ce0642296a
mlx5_core: Change optimal_reclaimed_pages for better performance

Change optimal_reclaimed_pages() to increase the output size of each
reclaim pages command. This change reduces significantly the amount of
reclaim pages commands issued to FW when the driver is unloaded which
reduces the overall driver unload time.

Signed-off-by: Moshe Lazer <moshel@mellanox.com>
Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/net/ethernet/mellanox/mlx5/core/pagealloc.c