[ovs-discuss] combining Geneve and VXLAN tunnels

Gerhard Stenzel gstenzel at linux.vnet.ibm.com
Wed Nov 30 13:43:45 UTC 2016


On 11/28/2016 05:49 PM, Gerhard Stenzel wrote:
...
> 
> It seems the tunnel port is set in ./net/openvswitch/flow_netlink.c:
> 
> static int validate_and_copy_set_tun(const struct nlattr *attr,
>                                      struct sw_flow_actions **sfa, bool log)
> {
> ....
>         if (key.tun_proto == AF_INET6)
>                 tun_info->mode |= IP_TUNNEL_INFO_IPV6;
>         tun_info->key = key.tun_key;
> ....
> 
> 
> With the following hack (which is obviously not the proper solution):
>         if (tun_info->key.tp_dst == 6081)
>                 tun_info->key.tp_dst = 4789;
>         else
>                 if (tun_info->key.tp_dst == 4789) tun_info->key.tp_dst = 6081;
> 
...

If anybody could point me in the right direction from where I could get the correct tunnel port, that would be very helpful, because I am currently stuck .. Thanks.



More information about the discuss mailing list