diff options
| author | yamaguchi <yamaguchi@NetBSD.org> | 2022-01-12 08:23:53 +0000 |
|---|---|---|
| committer | yamaguchi <yamaguchi@NetBSD.org> | 2022-01-12 08:23:53 +0000 |
| commit | 99c8d729f4428eb33cafb3815df66d28e894ac85 (patch) | |
| tree | 3982f3b50f9c30ee84db1d9944f9b27ee811dd70 /sys/dev/usb/usbdevs_data.h | |
| parent | 27ac560615885bd14dbe3d653517a033cf8749d3 (diff) | |
Fix to call lacp_linkstate with IFNET_LOCK held
Network stack calls lacp_linkstate through lagg_port_ioctl when
doing "ifconfig up" or "ifconfig down" to an interface that is
a member of lagg(4). And IFNET_LOCK in the member interface
is held while the ioctl.
Therefore, lacp_linkstate is renamed to
lacp_linkstate_ifnet_locked, and always called with IFNET_LOCK
held. It avoids locking agains myself.
Diffstat (limited to 'sys/dev/usb/usbdevs_data.h')
0 files changed, 0 insertions, 0 deletions
