[ovs-git] [openvswitch/ovs] a5bdd3: bridge: open_type should be used for netdev_open

GitHub noreply at github.com
Wed Jul 6 16:07:58 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: a5bdd3b20d88b40df605db49e7f510e626a87469
      https://github.com/openvswitch/ovs/commit/a5bdd3b20d88b40df605db49e7f510e626a87469
  Author: Thadeu Lima de Souza Cascardo <cascardo at redhat.com>
  Date:   2016-07-06 (Wed, 06 Jul 2016)

  Changed paths:
    M tests/automake.mk
    A tests/netdev-type.at
    M tests/testsuite.at
    M vswitchd/bridge.c

  Log Message:
  -----------
  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 at redhat.com>
Signed-off-by: Jesse Gross <jesse at kernel.org>




More information about the git mailing list