netdev: Don't assume all netdevs are available at runtime.
authorJesse Gross <jesse@nicira.com>
Tue, 17 Aug 2010 22:09:53 +0000 (18:09 -0400)
committerJesse Gross <jesse@nicira.com>
Tue, 24 Aug 2010 20:58:00 +0000 (16:58 -0400)
commitcc485f5d1a4e09a608312d6e4a0ada4d627f01bc
tree7d33da3918974ccff650d912d98cba4c69430cf4
parente90b1cf9ce7f7078a17fa5e0c32fa31f00b68d32
netdev: Don't assume all netdevs are available at runtime.

Currently we print a warning if a user tries to configure a
netdev that is not in the list that userspace knows about.
However, it is possible that a given netdev maybe be enabled but
when it tries to create a device it finds out that it can't
(not supported by kernel module, hardware not present, etc.).
This makes the behavior the same in both cases.

Signed-off-by: Jesse Gross <jesse@nicira.com>
lib/netdev.c