]> git.baikalelectronics.ru Git - kernel.git/commit
route: Set lwtstate for local traffic and cached input dsts
authorThomas Graf <tgraf@suug.ch>
Wed, 30 Nov 2016 16:10:09 +0000 (17:10 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Dec 2016 15:51:49 +0000 (10:51 -0500)
commit1cb8c7c2089971ee6da5388eee9d5ee80d91c57a
tree60a5b287dc3b375946b8cc22cf83273d9024772d
parent2dcc7666a8a84198ed77d1cc31f8dd191d7b8c15
route: Set lwtstate for local traffic and cached input dsts

A route on the output path hitting a RTN_LOCAL route will keep the dst
associated on its way through the loopback device. On the receive path,
the dst_input() call will thus invoke the input handler of the route
created in the output path. Thus, lwt redirection for input must be done
for dsts allocated in the otuput path as well.

Also, if a route is cached in the input path, the allocated dst should
respect lwtunnel configuration on the nexthop as well.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/route.c