On Thu, May 14, 2015 at 11:10 AM, Jiri Benc <[email protected]> wrote:
> diff --git a/net/openvswitch/vport.h b/net/openvswitch/vport.h
> index b22d45775eb5..ca9ebb9eb0f7 100644
> --- a/net/openvswitch/vport.h
> +++ b/net/openvswitch/vport.h
> +static inline struct dst_entry *ovs_tunnel6_route_lookup(struct sock *sk,
> +                                                        const struct 
> ovs_key_ip_tunnel *key,
> +                                                        u32 mark,
> +                                                        struct flowi6 *fl6,
> +                                                        u8 protocol)
> +{
> +       struct dst_entry *dst;
> +       int err;
> +
> +       if (ipv6_addr_any(&key->ipv6_dst))
> +               return ERR_PTR(-EAFNOSUPPORT);
> +       if (WARN_ON_ONCE(!sk))
> +               return ERR_PTR(-EAFNOSUPPORT);

It should be OK if we don't have a sk, right? The IPv6 GRE code passes
in NULL when it does its route lookup.
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev

Reply via email to