FreeBSD/src 1964e8f (r341976)sys/dev/mlx5/mlx5_en mlx5_en_ethtool.c mlx5_en_main.c

MFC r341582:
mlx5en: Fix race in mlx5e_ethtool_debug_stats().

Writing to the debug stats variable must be locked,
else serialization will be lost which might cause
various kernel panics due to creating and destroying
sysctls out of order.

Make sure the sysctl context is initialized after freeing
the sysctl nodes, else they can be freed twice.

Sponsored by:   Mellanox Technologies
DeltaFile
+14-13sys/dev/mlx5/mlx5_en/mlx5_en_ethtool.c
+4-8sys/dev/mlx5/mlx5_en/mlx5_en_main.c
+0-1sys/dev/mlx5/mlx5_en/en.h
+18-223 files

UnifiedSplitRaw