Page MenuHomeFreeBSD

Remove per-packet ifa refcounting from IPv6 fast path.
ClosedPublic

Authored by melifaro on Feb 13 2021, 3:04 PM.
Tags
None
Referenced Files
F165093690: D28648.diff
Wed, Aug 5, 11:43 PM
Unknown Object (File)
Mon, Jul 27, 12:12 AM
Unknown Object (File)
Tue, Jul 21, 1:36 AM
Unknown Object (File)
Sat, Jul 18, 1:56 AM
Unknown Object (File)
Jul 4 2026, 9:49 AM
Unknown Object (File)
Jul 2 2026, 12:18 PM
Unknown Object (File)
Jul 1 2026, 5:13 AM
Unknown Object (File)
Jun 26 2026, 1:30 AM
Subscribers

Details

Summary

Currently ip6_input() calls in6ifa_ifwithaddr() for
every local packet, in order to check if the target ip
belongs to the local ifa in proper state and increase
its counters.

in6ifa_ifwithaddr() references found ifa.
With epoch changes, both ip6_input() and all other current callers
of in6ifa_ifwithaddr() do not need this reference
anymore, as epoch provides stability guarantee.

Given that, update in6ifa_ifwithaddr() to allow
it to return ifa without referencing it, while preserving
option for getting referenced ifa if so desired.

Note: depends on D28647.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 36968
Build 33857: arc lint + arc unit