summaryrefslogtreecommitdiff
path: root/sys/dev/usb/usbdevs_data.h
diff options
context:
space:
mode:
authoryamaguchi <yamaguchi@NetBSD.org>2022-01-12 08:23:53 +0000
committeryamaguchi <yamaguchi@NetBSD.org>2022-01-12 08:23:53 +0000
commit99c8d729f4428eb33cafb3815df66d28e894ac85 (patch)
tree3982f3b50f9c30ee84db1d9944f9b27ee811dd70 /sys/dev/usb/usbdevs_data.h
parent27ac560615885bd14dbe3d653517a033cf8749d3 (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