dpif-netlink: break out code to add compat and non-compat vports
authorThadeu Lima de Souza Cascardo <cascardo@redhat.com>
Thu, 26 May 2016 13:18:42 +0000 (10:18 -0300)
committerThadeu Lima de Souza Cascardo <cascardo@redhat.com>
Thu, 23 Jun 2016 22:08:25 +0000 (19:08 -0300)
commita74fa223ad4474442595a6e00a91b0ca691f7862
tree43482d4674e1714563f4495c058ef398a4d8e745
parent7bcffeb41298e34e2864bec9c52d687eb858d433
dpif-netlink: break out code to add compat and non-compat vports

The vport type for adding tunnels is now compatibility code and any new features
from tunnels must configure the tunnel as an interface using the tunnel metadata
support.

In order to be able to add those tunnels, we need to add code to create the
tunnels and add them as NETDEV vports. And when there is no support to create
them, we need to use the compatibility code and add them as tunnel vports.

When removing those tunnels, we need to remove the interfaces as well, and
detecting the right type might be important, at least to distinguish the tunnel
vports that we should remove and the interfaces that we shouldn't.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@redhat.com>
lib/dpif-netlink.c