]> git.karo-electronics.de Git - karo-tx-linux.git/commit
net/mlx5e: Reduce number of heap allocated buffers for update stats
authorGal Pressman <galp@mellanox.com>
Mon, 5 Jun 2017 13:45:45 +0000 (16:45 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 15 Jun 2017 21:18:40 +0000 (00:18 +0300)
commit0883b4f456f691a54df7a9ae5607ade456fa7b97
tree26c4aa402a1e21be278d10be8ae5a77cf80b784d
parentebc88870dab343ef3d16832e40d53bd21f1bf0e5
net/mlx5e: Reduce number of heap allocated buffers for update stats

Allocating buffers on the heap every 200ms is something we should avoid,
let's use buffers located on the stack instead.

Signed-off-by: Gal Pressman <galp@mellanox.com>
Reviewed-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Cc: kernel-team@fb.com
drivers/net/ethernet/mellanox/mlx5/core/en_main.c