X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fnetdev-provider.h;h=23905d41366c718c69343f748716a28e2b3f3c31;hb=fa04edcedfe5285fd8ad3a4d70fecb38df18293d;hp=05cf24feb36adcf202f5945d6493ac512a14290c;hpb=9dc63482bbeae23dd57b0f885a3fd26b44656844;p=sliver-openvswitch.git diff --git a/lib/netdev-provider.h b/lib/netdev-provider.h index 05cf24feb..23905d413 100644 --- a/lib/netdev-provider.h +++ b/lib/netdev-provider.h @@ -33,9 +33,12 @@ extern "C" { * Network device implementations may read these members but should not modify * them. */ struct netdev { + /* The following do not change during the lifetime of a struct netdev. */ char *name; /* Name of network device. */ const struct netdev_class *netdev_class; /* Functions to control this device. */ + + /* The following are protected by 'netdev_mutex' (internal to netdev.c). */ int ref_cnt; /* Times this devices was opened. */ struct shash_node *node; /* Pointer to element in global map. */ struct list saved_flags_list; /* Contains "struct netdev_saved_flags". */ @@ -636,7 +639,6 @@ struct netdev_class { int netdev_register_provider(const struct netdev_class *); int netdev_unregister_provider(const char *type); -const struct netdev_class *netdev_lookup_provider(const char *type); extern const struct netdev_class netdev_linux_class; extern const struct netdev_class netdev_internal_class; @@ -645,6 +647,9 @@ extern const struct netdev_class netdev_tap_class; extern const struct netdev_class netdev_bsd_class; #endif +extern const struct netdev_class netdev_tunnel_class; +extern const struct netdev_class netdev_pltap_class; + #ifdef __cplusplus } #endif