Re: [PATCH v2 net-next 2/4] ip_tunnels: record IP version in tunnel info

2015-08-29 Thread Jiri Benc
On Sat, 29 Aug 2015 00:24:11 +0200, Thomas Graf wrote: On 08/28/15 at 08:48pm, Jiri Benc wrote: diff --git a/net/openvswitch/vport.c b/net/openvswitch/vport.c index e2dc9dac59e6..40164037928e 100644 --- a/net/openvswitch/vport.c +++ b/net/openvswitch/vport.c @@ -587,6 +587,8 @@ int

Re: [PATCH v2 net-next 2/4] ip_tunnels: record IP version in tunnel info

2015-08-28 Thread Pravin Shelar
On Fri, Aug 28, 2015 at 11:48 AM, Jiri Benc jb...@redhat.com wrote: There's currently nothing preventing directing packets with IPv6 encapsulation data to IPv4 tunnels (and vice versa). If this happens, IPv6 addresses are incorrectly interpreted as IPv4 ones. Track whether the given

Re: [PATCH v2 net-next 2/4] ip_tunnels: record IP version in tunnel info

2015-08-28 Thread Thomas Graf
On 08/28/15 at 08:48pm, Jiri Benc wrote: diff --git a/net/openvswitch/vport.c b/net/openvswitch/vport.c index e2dc9dac59e6..40164037928e 100644 --- a/net/openvswitch/vport.c +++ b/net/openvswitch/vport.c @@ -587,6 +587,8 @@ int ovs_tunnel_get_egress_info(struct ip_tunnel_info