Page MenuHomeFreeBSD

Reduce code duplication for inpcb route caching
ClosedPublic

Authored by rstone on Jan 19 2018, 9:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 3, 9:39 PM
Unknown Object (File)
Sun, Mar 31, 9:01 PM
Unknown Object (File)
Jan 13 2024, 9:03 AM
Unknown Object (File)
Dec 20 2023, 7:25 AM
Unknown Object (File)
Dec 9 2023, 10:47 AM
Unknown Object (File)
Nov 10 2023, 2:52 PM
Unknown Object (File)
Nov 7 2023, 5:07 AM
Unknown Object (File)
Oct 9 2023, 1:51 PM

Details

Summary

Add a new macro to clear both the L3 and L2 route caches, to
hopefully prevent future instances where only the L3 cache was
cleared when both should have been.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 14490
Build 14632: arc lint + arc unit

Event Timeline

vangyzen added inline comments.
sys/net/route.h
419

I generally prefer inline functions over macros, but this is fine.

sys/netinet/ip_output.c
305

This drops the assignment of NULL to the local rte.

NULL-out rte after route cache is invalidated

Was there a place where only L3 was invalidated?

In any case, this seems like a good change.

This revision is now accepted and ready to land.Jan 22 2018, 5:38 AM
This revision was automatically updated to reflect the committed changes.