]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Split mlx5e_update_stats_work() in mlx5en(4).
authorHans Petter Selasky <hselasky@FreeBSD.org>
Wed, 8 May 2019 10:35:14 +0000 (10:35 +0000)
committerHans Petter Selasky <hselasky@FreeBSD.org>
Wed, 8 May 2019 10:35:14 +0000 (10:35 +0000)
commitf0dcb8dff5b4f7cfb17be3bebc89b25c3180d0d3
treeaa23ef752121ace01c5de84094412795e4d7f005
parent91f13f83685d21ba28330da67042c06745832d13
Split mlx5e_update_stats_work() in mlx5en(4).

Split the function into the mlx5e_update_stats_locked() core and make
mlx5e_update_stats_work() call the _locked helper, similar to many other
places in the kernel. This improves the code structure, making the
locking clean.

Submitted by: kib@
MFC after: 3 days
Sponsored by: Mellanox Technologies
sys/dev/mlx5/mlx5_en/mlx5_en_main.c