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
Unknown Object (File)
Sat, Nov 29, 9:44 PM
Unknown Object (File)
Thu, Nov 27, 4:56 PM
Unknown Object (File)
Nov 9 2025, 2:35 AM
Unknown Object (File)
Nov 5 2025, 2:31 AM
Unknown Object (File)
Oct 29 2025, 9:30 AM
Unknown Object (File)
Oct 29 2025, 8:19 AM
Unknown Object (File)
Oct 29 2025, 7:20 AM
Unknown Object (File)
Oct 29 2025, 7:11 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable