]> git.proxmox.com Git - mirror_ovs.git/commit
dpif-netdev: use the open_type when creating the local port
authorThadeu Lima de Souza Cascardo <cascardo@redhat.com>
Wed, 27 Jul 2016 15:06:44 +0000 (12:06 -0300)
committerDaniele Di Proietto <diproiettod@vmware.com>
Wed, 27 Jul 2016 21:48:24 +0000 (14:48 -0700)
commita3e8437a1893413060c2e168f55fcd20f13bdf35
tree55d9109dc9d0043d90126a3e0c3866c756f9cf38
parent6c607a64aeff39b8c74fedad681d9f4a207b214e
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