HomeFreeBSD

Convert in_ifaddr_lock and in6_ifaddr_lock to rmlock.

Description

Convert in_ifaddr_lock and in6_ifaddr_lock to rmlock.

Both are used to protect access to IP addresses lists and they can be
acquired for reading several times per packet. To reduce lock contention
it is better to use rmlock here.

Reviewed by: gnn (previous version)
Obtained from: Yandex LLC
Sponsored by: Yandex LLC
Differential Revision: https://reviews.freebsd.org/D3149

Details

Provenance
aeAuthored on
Reviewer
gnn
Differential Revision
D3149: Migrate in_ifaddr_lock and in6_ifaddr_lock to rmlock
Parents
rS286000: RFC4868 section 2.3 requires that the output be half... This fixes
Branches
Unknown
Tags
Unknown