]> git.proxmox.com Git - mirror_ovs.git/commit
netdev-dummy: Add dummy-internal class.
authorDaniele Di Proietto <diproiettod@vmware.com>
Thu, 11 Feb 2016 21:11:10 +0000 (13:11 -0800)
committerDaniele Di Proietto <diproiettod@vmware.com>
Mon, 15 Aug 2016 18:07:42 +0000 (11:07 -0700)
commite98d0cb3ac85ba2266a82ddd63bba42cd378ad3f
treec10abd784e0146a52ec20b9fad61456bc0cb3708
parent1c33f0c35e6b81d600798f255a896a85507d51ed
netdev-dummy: Add dummy-internal class.

"internal" netdevs are treated specially in OVS (e.g. for MTU), but
the dummy datapath remaps both "system" and "internal" devices to the
same "dummy" netdev class, so there's no way to discern those in tests.

This commit adds a new "dummy-internal" netdev type, which will be used
by the dummy datapath for internal ports, so that other parts of the
code can understand which ports are internal just by looking at the
netdev object.

The alternative solution, using the original interface type ("internal")
instead of the translated netdev type ("dummy"), is harder to implement,
because in so many places only the netdev object is available.

Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
Acked-by: Ben Pfaff <blp@ovn.org>
13 files changed:
lib/dpif-netdev.c
lib/netdev-dummy.c
tests/bridge.at
tests/dpctl.at
tests/mpls-xlate.at
tests/netdev-type.at
tests/ofproto-dpif.at
tests/ovn-controller.at
tests/ovs-vswitchd.at
tests/pmd.at
tests/tunnel-push-pop-ipv6.at
tests/tunnel-push-pop.at
tests/tunnel.at