[ovs-dev] [PATCH RFC] netdev-linux: support lwtunnel vxlan interfaces

Pravin Shelar pshelar at nicira.com
Fri Oct 2 05:19:10 UTC 2015


On Thu, Oct 1, 2015 at 9:08 AM, Jiri Benc <jbenc at redhat.com> wrote:
> This is for IPv4 only at this point. Only vxlan is recognized for now.
>
> The usage is as follows:
>
> ip l a type vxlan metadata dstport 4789
> ovs-vsctl add-port ovsbridge vxlan0
>
> Now, the encapsulation can be specified using ovs-ofctl, e.g.:
>
> ovs-ofctl add-flow ovs0 'in_port=2 actions=set_field:2->tun_id,set_field:192.168.1.1->tun_dst,1'
> ovs-ofctl add-flow ovs0 'in_port=1,tun_id=2 actions=2'
>

Existing ovs-vsctl add-port command for tunnels should work with
lwtunnel inetrfaces. So tunnel vport create needs to switch between
compat vport and lwtunnel interface according to the kernel support.


> Note that this depends on iproute2 patches that are not merged yet to create
> the metadata based vxlan interface.
>



More information about the dev mailing list