]> git.baikalelectronics.ru Git - kernel.git/commit
ip_tunnel: Fix route fl4 init in ip_md_tunnel_xmit
authorwenxu <wenxu@ucloud.cn>
Tue, 22 Jan 2019 10:39:51 +0000 (18:39 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Jan 2019 17:43:03 +0000 (09:43 -0800)
commitdd105336067d8dd3a0dd852768ad31e18ebcfcfd
tree60620177f2f84d22cde04109fc48b6e8d6c12425
parent07215f8312e4df17522f8b0882fff6d4912d6fce
ip_tunnel: Fix route fl4 init in ip_md_tunnel_xmit

Init the gre_key from tuninfo->key.tun_id and init the mark
from the skb->mark, set the oif to zero in the collect metadata
mode.

Fixes: 9f3fcb26623b ("ip_tunnel: add collect_md mode to IPIP tunnel")
Signed-off-by: wenxu <wenxu@ucloud.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_tunnel.c