On 08/24/15 at 10:43am, Pravin B Shelar wrote:
> Introduce function udp_tun_rx_dst() to initialize tunnel dst on
> receive path.
> 
> Signed-off-by: Pravin B Shelar <[email protected]>
> +     if (family == AF_INET)
> +             tun_dst = ip_tun_rx_dst(skb, flags, tunnel_id, md_size);
> +     else
> +             tun_dst = ipv6_tun_rx_dst(skb, flags, tunnel_id, md_size);

Might look a bit cleaner if you add the address specific code inside
ip_tun_rx_dst() directly. I'm fine either way though.

Acked-by: Thomas Graf <[email protected]>
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to