netdev-vport: Use dpif_port as base for tunnel backing port.
authorJesse Gross <jesse@nicira.com>
Wed, 28 May 2014 04:59:26 +0000 (21:59 -0700)
committerJesse Gross <jesse@nicira.com>
Fri, 13 Jun 2014 23:28:22 +0000 (16:28 -0700)
commita5d4fadd0027b25cd393ba8535594227aa09b86a
treef7e0f8f854d5c3967c92a14a2b8ad25a551ebeea
parentb56ea5d54e072105b398d26421f9a4578fa6e05b
netdev-vport: Use dpif_port as base for tunnel backing port.

In most cases, tunnel ports specify a dpif name to act as the backing
port in the datapath. However, in the case of UDP tunnels the type is
used with the port number appended. This is potentially a problem for
IPsec tunnels because they have different types but should have the
same backing port. The hasn't been a problem in practice though because
no UDP tunnels are currently used with IPsec.

This switches to use the dpif_port in all cases plus a port number if
necessary. It does this by making the names short enough to accomodate
ports, which also makes the naming more consistent.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/netdev-vport.c
lib/netdev.c
tests/ovs-vsctl.at