Page MenuHomeFreeBSD

IfAPI: Hide the in6m_lookup_locked() implementation.
ClosedPublic

Authored by jhibbits on Jan 25 2023, 9:20 PM.
Tags
None
Referenced Files
F102198676: D38201.diff
Fri, Nov 8, 8:38 PM
Unknown Object (File)
Sep 28 2024, 12:17 AM
Unknown Object (File)
Sep 24 2024, 1:38 PM
Unknown Object (File)
Sep 24 2024, 1:38 PM
Unknown Object (File)
Sep 24 2024, 1:37 PM
Unknown Object (File)
Sep 24 2024, 1:29 PM
Unknown Object (File)
Sep 24 2024, 8:14 AM
Unknown Object (File)
Sep 12 2024, 3:50 PM
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 49234
Build 46124: arc lint + arc unit

Event Timeline

melifaro added inline comments.
sys/netinet6/in6_var.h
787

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

802

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
787

Ack, will do it in commit.

802

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
354

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.