From: Robert Shearman Date: Mon, 3 Aug 2015 16:39:21 +0000 (+0100) Subject: ipv4: apply lwtunnel encap for locally-generated packets X-Git-Tag: omap-for-v4.3/fixes-rc1~110^2~231^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0335f5b500adcc28bc3fd5d8a1e4482c348cff4a;p=pandora-kernel.git ipv4: apply lwtunnel encap for locally-generated packets lwtunnel encap is applied for forwarded packets, but not for locally-generated packets. This is because the output function is not overridden in __mkroute_output, unlike it is in __mkroute_input. The lwtunnel state is correctly set on the rth through the call to rt_set_nexthop, so all that needs to be done is to override the dst output function to be lwtunnel_output if there is lwtunnel state present and it requires output redirection. Signed-off-by: Robert Shearman Signed-off-by: David S. Miller --- Reading git-diff-tree failed