]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Reduce code duplication for inpcb route caching
authorrstone <rstone@FreeBSD.org>
Tue, 23 Jan 2018 03:15:39 +0000 (03:15 +0000)
committerrstone <rstone@FreeBSD.org>
Tue, 23 Jan 2018 03:15:39 +0000 (03:15 +0000)
commitc0c5474ab001c79e187ab027711f01ca0b30bde3
tree024838301da065ad6750c7b24714f20a18a19509
parent4fb0175a267ea8187419800a2ceea787933733b3
Reduce code duplication for inpcb route caching

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.

MFC after: 1 week
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D13989
Reviewed by: karels
sys/net/route.h
sys/netinet/in_pcb.c
sys/netinet/ip_output.c