aboutsummaryrefslogtreecommitdiff
path: root/lib/netdev.h
diff options
context:
space:
mode:
authorJesse Gross <jesse@nicira.com>2010-06-01 14:20:59 -0700
committerJesse Gross <jesse@nicira.com>2010-06-01 17:27:45 -0700
commit1e82e503c5358f8dce9eb2105448f0ec894d57bc (patch)
treec6b8862ee59ff8e491daef67546c457aecbb9340 /lib/netdev.h
parent61b999dd6fa3a8942b5002f9392a0068324a80b6 (diff)
netdev: Remove may_create/may_open flags.
The most recent revision of the netdev library added may_create and may_open flags to explicitly state the intent of the caller as to whether the device should already be in use. This was simply a sanity check for users of the netdev library and the configuration. At this point the netdev library and its users are well behaved and should no longer need to be checked. Additional checks have also been added for incorrect configuration that mean the netdev library is no longer the primary line of defense. These flags themselves create problems because it is not always easy for a library to know what the state of devices should be. This is particularly a problem for ovs-openflowd, which expects ports to be added by ovs-dpctl. Fixing this either requires that the checks are so permissive to be useless or ugly hacks to get around them. Since they are no longer needed, just remove the checks. This commit restores the previous behavior of ovs-openflowd to not require that ports be specified on the command line or cleaned up after use. Bug #2652 CC: Natasha Gude <natasha@nicira.com> CC: Jean Tourrilhes <jt@hpl.hp.com> CC: 蒲彦 <yan.p.bjtu@gmail.com>
Diffstat (limited to 'lib/netdev.h')
-rw-r--r--lib/netdev.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/netdev.h b/lib/netdev.h
index 2a096ee2..5dca24cf 100644
--- a/lib/netdev.h
+++ b/lib/netdev.h
@@ -85,8 +85,6 @@ struct netdev_options {
const char *type;
const struct shash *args;
int ethertype;
- bool may_create;
- bool may_open;
};
struct netdev;