]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Move and optimize query out of buffer function
authorGal Pressman <galp@mellanox.com>
Wed, 14 Jun 2017 08:52:33 +0000 (11:52 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 15 Jun 2017 21:19:02 +0000 (00:19 +0300)
commit9f9d716cf0c55c5970c4c31dae055e626066eab0
tree17ab73f9df9c837904cb563dce7493cba67d6e82
parent6d385fc07e3cc3aed4ee015706f8db4b44f91254
net/mlx5e: Move and optimize query out of buffer function

Move "query queue counter out of buffer" helper function out of
qp.c to en_main.c, since mlx5e netdev driver is the only one to use it.

Also allocate the output buffer on the stack instead of the heap, to reduce
number of heap allocs on update_stats work.

Signed-off-by: Gal Pressman <galp@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Cc: kernel-team@fb.com
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/qp.c
include/linux/mlx5/qp.h