svn commit: r328270 - head/sys/net

Ryan Stone rstone at FreeBSD.org
Tue Jan 23 07:15:15 UTC 2018


Author: rstone
Date: Tue Jan 23 03:15:35 2018
New Revision: 328270
URL: https://svnweb.freebsd.org/changeset/base/328270

Log:
  Invalidate inpcb LLE cache if cached route is invalidated
  
  When the inpcb route cache is invalidated after a change to the
  routing tables, we need to invalidate the LLE cache as well.
  Previous to this change packets for the connection would continue
  to use the old L2 information from the old L3 gateway, and the
  packets for the connection would likely be blackholed.
  
  MFC after:	1 week
  Sponsored by:	Dell EMC Isilon
  Differential Revision:	https://reviews.freebsd.org/D13988
  Reviewed by:	karels

Modified:
  head/sys/net/route.h

Modified: head/sys/net/route.h
==============================================================================
--- head/sys/net/route.h	Tue Jan 23 02:52:12 2018	(r328269)
+++ head/sys/net/route.h	Tue Jan 23 03:15:35 2018	(r328270)
@@ -428,6 +428,10 @@ struct rt_addrinfo {
 			RTFREE((ro)->ro_rt);				\
 			(ro)->ro_rt = NULL;				\
 		}							\
+		if ((ro)->ro_lle != NULL) {					\
+			LLE_FREE((ro)->ro_lle);				\
+			(ro)->ro_lle = NULL;				\
+		}							\
 		*(cookiep) = cookie;					\
 	}								\
 } while (0)


More information about the svn-src-all mailing list