ip_tunnel: add support for setting flow label via collect metadata
authorDaniel Borkmann <daniel@iogearbox.net>
Wed, 9 Mar 2016 02:00:02 +0000 (03:00 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Mar 2016 20:14:26 +0000 (15:14 -0500)
commit134611446dc657e1bbc73ca0e4e6b599df687db0
tree4a737866a24d8f515b09acda069ab422fe28344b
parente327f4e193b6a176f4dc3b19faf6371a8917588d
ip_tunnel: add support for setting flow label via collect metadata

This patch extends udp_tunnel6_xmit_skb() to pass in the IPv6 flow label
from call sites. Currently, there's no such option and it's always set to
zero when writing ip6_flow_hdr(). Add a label member to ip_tunnel_key, so
that flow-based tunnels via collect metadata frontends can make use of it.
vxlan and geneve will be converted to add flow label support separately.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/geneve.c
drivers/net/vxlan.c
include/net/dst_metadata.h
include/net/ip_tunnels.h
include/net/udp_tunnel.h
net/ipv6/ip6_udp_tunnel.c
net/tipc/udp_media.c