]> git.proxmox.com Git - mirror_ovs.git/commit
ofproto: Consider datapath_type when looking for internal ports.
authorDaniele Di Proietto <diproiettod@vmware.com>
Tue, 9 Aug 2016 16:01:14 +0000 (17:01 +0100)
committerDaniele Di Proietto <diproiettod@vmware.com>
Tue, 9 Aug 2016 16:39:45 +0000 (09:39 -0700)
commit86fce577ec1a05c92764878ef6a423c75ff18149
tree299aa4bae466851599712a88ba5dfc05fbe89d97
parent9f4ecd654dbcb88b15a424445184591fc887537e
ofproto: Consider datapath_type when looking for internal ports.

Interfaces with type "internal" end up having a netdev with type "tap"
in the dpif-netdev datapath, so a strcmp will fail to match internal
interfaces.

We can translate the types with ofproto_port_open_type() before calling
strcmp to fix this.

This fixes a minor issue where internal interfaces are considered
non-internal in the userspace datapath for the purpose of adjusting the
MTU.

Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
Acked-by: Thadeu Lima de Souza Cascardo <cascardo@redhat.com>
ofproto/ofproto.c