dpif-netdev: use the open_type when creating the local port
authorThadeu Lima de Souza Cascardo <cascardo@redhat.com>
Fri, 8 Jul 2016 18:12:10 +0000 (15:12 -0300)
committerThadeu Lima de Souza Cascardo <cascardo@redhat.com>
Wed, 27 Jul 2016 14:55:32 +0000 (11:55 -0300)
commitf674583bea85d3a9914b94732e15ed5dfeeb9389
treeae7460553bfbc1095d668b9c6997c500e731b7b3
parentfc5512881c0fd9022c80882ae479e69edd1af058
dpif-netdev: use the open_type when creating the local port

Instead of using the internal type, use the port_open_type when creating the
local port. That makes sure that whenever dpif_port_query is used, the netdev
open_type is returned instead of the "internal" type.

For other ports, that is already the case, as the netdev type is used when
creating the dp_netdev_port.

That changes the output of dpctl when showing the local port, and also when
trying to change its type. So, corresponding tests are fixed.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@redhat.com>
Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
lib/dpif-netdev.c
tests/dpctl.at