diff options
author | Justin Pettit <jpettit@nicira.com> | 2012-11-14 15:50:20 -0800 |
---|---|---|
committer | Justin Pettit <jpettit@nicira.com> | 2012-11-16 12:35:55 -0800 |
commit | 0aeaabc8dbccef7593dc19e891a3f5bbef1991cd (patch) | |
tree | 4d787178ca17caa89ea41d6f99b8383a22784bf6 /lib/dpif.h | |
parent | 78a2d59c1c7fd057e1ca888c92f2f86efcf8b53a (diff) |
Add functions to determine how port should be opened based on type.
Depending on the port and type of datapath, a port may need to be opened
as a different type of device than it's configured. For example, an
"internal" port on a "dummy" datapath should opened as a "dummy" port.
This commit adds the ability for a dpif to provide this information to a
caller. It will be used in a future commit.
Signed-off-by: Justin Pettit <jpettit@nicira.com>
Diffstat (limited to 'lib/dpif.h')
-rw-r--r-- | lib/dpif.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -73,6 +73,8 @@ int dpif_get_dp_stats(const struct dpif *, struct dpif_dp_stats *); /* Port operations. */ +const char *dpif_port_open_type(const char *datapath_type, + const char *port_type); int dpif_port_add(struct dpif *, struct netdev *, uint32_t *port_nop); int dpif_port_del(struct dpif *, uint32_t port_no); |