diff options
author | Pravin B Shelar <pshelar@ovn.org> | 2016-02-11 01:05:16 -0800 |
---|---|---|
committer | Pravin B Shelar <pshelar@ovn.org> | 2016-02-17 18:29:44 -0800 |
commit | 250bd94d1e500a89c76cac944e660bd9c07ac364 (patch) | |
tree | 55656e15b1510e8b343b31c7ccf8b7d548164594 /ofproto/tunnel.c | |
parent | 598ff4b2d09d8194a40b850b6eb110797ab4d1b2 (diff) | |
download | openvswitch-250bd94d1e500a89c76cac944e660bd9c07ac364.tar.gz |
tunneling: Disable IPv6 tunnel
There are multiple issues in IPv6 userspace tunnel
implementation. Even the kernel module that ships with
2.5 does not support IPv6 tunneling. There is not
enough time to get all fixes in branch-2.5. So it make
sense to disable the support on 2.5.
Signed-off-by: Pravin B Shelar <pshelar@ovn.org>
Acked-by: Flavio Leitner <fbl@sysclose.org>
Acked-by: Thadeu Lima de Souza Cascardo <cascardo@redhat.com>
Acked-by: Jesse Gross <jesse@kernel.org>
Diffstat (limited to 'ofproto/tunnel.c')
-rw-r--r-- | ofproto/tunnel.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ofproto/tunnel.c b/ofproto/tunnel.c index 24b717a3c..a63cf716b 100644 --- a/ofproto/tunnel.c +++ b/ofproto/tunnel.c @@ -427,6 +427,14 @@ tnl_port_send(const struct ofport_dpif *ofport, struct flow *flow, flow->tunnel.ipv6_dst = tnl_port->match.ipv6_dst; } } + if (ipv6_addr_is_set(&flow->tunnel.ipv6_dst) || + ipv6_addr_is_set(&flow->tunnel.ipv6_src)) { + out_port = ODPP_NONE; + VLOG_WARN_RL(&rl, "port (%s): IPv6 tunnel endpoint is not supported", + netdev_get_name(tnl_port->netdev)); + goto out; + } + flow->pkt_mark = tnl_port->match.pkt_mark; if (!cfg->out_key_flow) { |