]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Do not reference returned ifa in in6_ifawithifp().
authorAlexander V. Chernikov <melifaro@FreeBSD.org>
Sun, 14 Feb 2021 10:11:06 +0000 (10:11 +0000)
committerAlexander V. Chernikov <melifaro@FreeBSD.org>
Sun, 14 Feb 2021 10:11:18 +0000 (10:11 +0000)
commit1bd44b11e59f1e9ee7245f8de1f823bc5287b9ef
treed3a3d79f747b422ac2d3ef2a1c8625b4414c0a96
parent25c6318c7906f6f4e0c66ce16f81bdb830ba2e3b
Do not reference returned ifa in in6_ifawithifp().

The only place where in6_ifawithifp() is used is ip6_output(),
 which uses the returned ifa to bump traffic counters.
Given ifa stability guarantees is provided by epoch, do not refcount ifa.

This eliminates 2 atomic ops from IPv6 fast path.

Reviewed By: rstone
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D28649
sys/netinet6/in6.c
sys/netinet6/ip6_output.c