vport.c (21c721fd0b991b1871ea5dd517be1b5375c5f8f7) vport.c (7f9562a1f405306eacb97f95d78cb996e33f27f5)
1/*
2 * Copyright (c) 2007-2014 Nicira, Inc.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of version 2 of the GNU General Public
6 * License as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful, but

--- 573 unchanged lines hidden (view full) ---

582 __be16 tp_dst)
583{
584 const struct ip_tunnel_key *tun_key;
585 struct rtable *rt;
586 struct flowi4 fl;
587
588 if (unlikely(!tun_info))
589 return -EINVAL;
1/*
2 * Copyright (c) 2007-2014 Nicira, Inc.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of version 2 of the GNU General Public
6 * License as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful, but

--- 573 unchanged lines hidden (view full) ---

582 __be16 tp_dst)
583{
584 const struct ip_tunnel_key *tun_key;
585 struct rtable *rt;
586 struct flowi4 fl;
587
588 if (unlikely(!tun_info))
589 return -EINVAL;
590 if (ip_tunnel_info_af(tun_info) != AF_INET)
591 return -EINVAL;
590
591 tun_key = &tun_info->key;
592
593 /* Route lookup to get srouce IP address.
594 * The process may need to be changed if the corresponding process
595 * in vports ops changed.
596 */
597 rt = ovs_tunnel_route_lookup(net, tun_key, skb_mark, &fl, ipproto);

--- 31 unchanged lines hidden ---
592
593 tun_key = &tun_info->key;
594
595 /* Route lookup to get srouce IP address.
596 * The process may need to be changed if the corresponding process
597 * in vports ops changed.
598 */
599 rt = ovs_tunnel_route_lookup(net, tun_key, skb_mark, &fl, ipproto);

--- 31 unchanged lines hidden ---