]> www.infradead.org Git - users/jedix/linux-maple.git/commit
route: check and remove route cache when we get route
authorXin Long <lucien.xin@gmail.com>
Thu, 18 Feb 2016 13:21:19 +0000 (21:21 +0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 26 May 2016 22:45:24 +0000 (15:45 -0700)
commitf5d4bee326855674a09519e7fcb2039007d9b598
treef7a2f0cf67567c264098813d13104fbaeea39623
parent90df94233bf4f78aca746ea288aa01dd63ff9e4b
route: check and remove route cache when we get route

Orabug: 23330958

[ Upstream commit deed49df7390d5239024199e249190328f1651e7 ]

Since the gc of ipv4 route was removed, the route cached would has
no chance to be removed, and even it has been timeout, it still could
be used, cause no code to check it's expires.

Fix this issue by checking  and removing route cache when we get route.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
(cherry picked from commit 1610a64d0c495cd84d848e5ff4e92f1f9f0ec6e5)

Signed-off-by: Dan Duval <dan.duval@oracle.com>
include/net/ip_fib.h
net/ipv4/route.c