HomeFreeBSD

mlx5en: Fix race in mlx5e_ethtool_debug_stats().

Description

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.

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies

Details

Provenance
slavashAuthored on
Parents
rS341581: mlx5en: Add support for IFM_10G_LR and IFM_40G_ER4 media types.
Branches
Unknown
Tags
Unknown