netdev-dummy: Remove FreeBSD dependency.
authorBen Pfaff <blp@nicira.com>
Sat, 18 May 2013 15:27:20 +0000 (08:27 -0700)
committerBen Pfaff <blp@nicira.com>
Sat, 18 May 2013 15:27:20 +0000 (08:27 -0700)
commit7c54c27f204ac9c7870ffab81aeba4d02336553a
treeaae0ed0d26102f52e5f5976ac6973c430f32a712
parentb4ccee7576e5bbc36764b88ad50f5052ecea25be
netdev-dummy: Remove FreeBSD dependency.

There's no particular reason that netdev_dummy_register() has to care about
the particular OS, except that the tests like to use the special Linux-only
tunnel vport types.  But that can be done better, I think, by just always
registering them from netdev_dummy_register() and making that function
idempotent, so that calling it twice under Linux has no additional effect.
This commit implements that solution.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ed Maste <emaste@freebsd.org>
lib/netdev-dummy.c
lib/netdev-vport.c