diff options
author | ae <ae@FreeBSD.org> | 2013-01-10 00:10:24 +0000 |
---|---|---|
committer | ae <ae@FreeBSD.org> | 2013-01-10 00:10:24 +0000 |
commit | 0bad7195e9475f33750e9d06c45763523c287188 (patch) | |
tree | ec1e9f997c536ee747062ea14752fe4b0276fc3e /sys/dev/usb/usb_hid.c | |
parent | 02d4d8c423473847e67beaab4c1143cc7b2105dd (diff) | |
download | FreeBSD-src-0bad7195e9475f33750e9d06c45763523c287188.zip FreeBSD-src-0bad7195e9475f33750e9d06c45763523c287188.tar.gz |
Simplify in6_setscope() function to get better performance.
Currently we use interface indeces as zone IDs for link-local and
interface-local scopes, and since we don't have any tool to configure
zone IDs, there is no need to acquire the afdata lock several times per
packet only to read if_index value.
So, now in6_setscope reads zone IDs for interface-local, link-local and
global scopes without a lock.
Sponsored by: Yandex LLC
MFC after: 2 weeks
Diffstat (limited to 'sys/dev/usb/usb_hid.c')
0 files changed, 0 insertions, 0 deletions