Date: Tue, 23 Jan 2018 03:15:35 +0000 (UTC) From: Ryan Stone <rstone@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r328270 - head/sys/net Message-ID: <201801230315.w0N3FZMH006908@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801230315.w0N3FZMH006908>