bridge: open_type should be used for netdev_open
authorThadeu Lima de Souza Cascardo <cascardo@redhat.com>
Mon, 4 Jul 2016 18:19:56 +0000 (15:19 -0300)
committerJesse Gross <jesse@kernel.org>
Wed, 6 Jul 2016 16:07:42 +0000 (09:07 -0700)
commita5bdd3b20d88b40df605db49e7f510e626a87469
tree10c444c085005acf49593b7ac138bb66787e2959
parent914403294be27cabaa08778d78fe2b8c87045ba0
bridge: open_type should be used for netdev_open

ofproto_port_open_type should be used for netdev_open, but not for other tests.
For example, STP/RSTP check for interfaces of internal type, but that check will
fail when the netdev datapath is used.

The same thing goes for setting MAC address of internal Interfaces. That fails
for the netdev datapath because the interface type is set to "tap", but they are
still interfaces of type "internal", just their netdev implementation is
different.

Use a netdev_type for the type that needs to be used for netdev_open and
ofproto_port, while we still keep the type as the normalized configured type in
the database.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@redhat.com>
Signed-off-by: Jesse Gross <jesse@kernel.org>
tests/automake.mk
tests/netdev-type.at [new file with mode: 0644]
tests/testsuite.at
vswitchd/bridge.c