[ovs-git] [openvswitch/ovs] 86fce5: ofproto: Consider datapath_type when looking for i...

GitHub noreply at github.com
Tue Aug 9 16:51:01 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 86fce577ec1a05c92764878ef6a423c75ff18149
      https://github.com/openvswitch/ovs/commit/86fce577ec1a05c92764878ef6a423c75ff18149
  Author: Daniele Di Proietto <diproiettod at vmware.com>
  Date:   2016-08-09 (Tue, 09 Aug 2016)

  Changed paths:
    M ofproto/ofproto.c

  Log Message:
  -----------
  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 at vmware.com>
Acked-by: Thadeu Lima de Souza Cascardo <cascardo at redhat.com>




More information about the git mailing list