summaryrefslogtreecommitdiffstats
path: root/net/mpls
diff options
context:
space:
mode:
authorRobert Shearman2015-08-03 18:39:21 +0200
committerDavid S. Miller2015-08-04 07:26:14 +0200
commit0335f5b500adcc28bc3fd5d8a1e4482c348cff4a (patch)
treeb4d102911e7e8af04d0f94df4dc734a331260fb7 /net/mpls
parentlwtunnel: set skb protocol and dev (diff)
downloadkernel-qcow2-linux-0335f5b500adcc28bc3fd5d8a1e4482c348cff4a.tar.gz
kernel-qcow2-linux-0335f5b500adcc28bc3fd5d8a1e4482c348cff4a.tar.xz
kernel-qcow2-linux-0335f5b500adcc28bc3fd5d8a1e4482c348cff4a.zip
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 <rshearma@brocade.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mpls')
0 files changed, 0 insertions, 0 deletions