Page MenuHomeFreeBSD

Reduce code duplication for inpcb route caching
ClosedPublic

Authored by rstone on Jan 19 2018, 9:40 PM.
Tags
None
Referenced Files
F137040718: D13989.id38338.diff
Fri, Nov 21, 1:01 AM
F137039834: D13989.id.diff
Fri, Nov 21, 12:59 AM
F137039674: D13989.id38222.diff
Fri, Nov 21, 12:59 AM
F137039303: D13989.id38234.diff
Fri, Nov 21, 12:58 AM
F137038003: D13989.diff
Fri, Nov 21, 12:55 AM
Unknown Object (File)
Tue, Nov 18, 3:20 AM
Unknown Object (File)
Sun, Nov 16, 9:15 PM
Unknown Object (File)
Fri, Nov 7, 9:28 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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

vangyzen added inline comments.
sys/net/route.h
419 ↗(On Diff #38222)

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

sys/netinet/ip_output.c
305 ↗(On Diff #38222)

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.