Page MenuHomeFreeBSD

IfAPI: Hide the in6m_lookup_locked() implementation.
ClosedPublic

Authored by jhibbits on Jan 25 2023, 9:20 PM.
Tags
None
Referenced Files
Unknown Object (File)
May 12 2024, 10:28 AM
Unknown Object (File)
Apr 27 2024, 11:03 AM
Unknown Object (File)
Apr 27 2024, 11:02 AM
Unknown Object (File)
Apr 27 2024, 11:02 AM
Unknown Object (File)
Apr 27 2024, 9:23 AM
Unknown Object (File)
Dec 20 2023, 7:40 AM
Unknown Object (File)
Oct 9 2023, 5:51 PM
Unknown Object (File)
Feb 14 2023, 1:27 AM
Subscribers

Details

Summary

in6m_lookup_locked() iterates over the ifnet's multiaddrs list. Keep
this implementation detail private, by moving the implementation to the
netstack source from the header.

Sponsored by: Juniper Networks, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

melifaro added inline comments.
sys/netinet6/in6_var.h
783–784

Nit: it’s worth moving the description to the implementation.

793

Is there a point to have it inlined after the change?

This revision is now accepted and ready to land.Jan 25 2023, 9:41 PM
jhibbits added inline comments.
sys/netinet6/in6_var.h
783–784

Ack, will do it in commit.

793

Not really. We lose the bulk of the inline performance gain by the branch to the netstack.

glebius added inline comments.
sys/netinet6/in6_mcast.c
353

I'd suggest to add NET_EPOCH_ASSERT() here and remove it from in6m_ifmultiaddr_get_inm(). This would be more correct as the epoch protects the linkage between multiaddrs, not individual address fields.

This revision was automatically updated to reflect the committed changes.
jhibbits marked an inline comment as done.