X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=ofproto%2Fofproto-provider.h;h=8f6f6b1a829ae79fc1b54957058291115e38b47f;hb=0aeaabc8dbccef7593dc19e891a3f5bbef1991cd;hp=26343cf0e126c8232d6f31e6fcd802c75fe94e8f;hpb=78a2d59c1c7fd057e1ca888c92f2f86efcf8b53a;p=sliver-openvswitch.git diff --git a/ofproto/ofproto-provider.h b/ofproto/ofproto-provider.h index 26343cf0e..8f6f6b1a8 100644 --- a/ofproto/ofproto-provider.h +++ b/ofproto/ofproto-provider.h @@ -382,6 +382,17 @@ struct ofproto_class { */ int (*del)(const char *type, const char *name); + /* Returns the type to pass to netdev_open() when a datapath of type + * 'datapath_type' has a port of type 'port_type', for a few special + * cases when a netdev type differs from a port type. For example, + * when using the userspace datapath, a port of type "internal" + * needs to be opened as "tap". + * + * Returns either 'type' itself or a string literal, which must not + * be freed. */ + const char *(*port_open_type)(const char *datapath_type, + const char *port_type); + /* ## ------------------------ ## */ /* ## Top-Level type Functions ## */ /* ## ------------------------ ## */