summaryrefslogtreecommitdiff
path: root/lib/dpif.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2009-06-15 16:51:46 -0700
committerBen Pfaff <blp@nicira.com>2009-07-06 09:07:23 -0700
commit335562c0b9b190f61c0cc457a4098c2688561387 (patch)
tree47d2cb99e3964c144df5831c534dfe3be063691d /lib/dpif.h
parent7efc68eb075acfe3c00fbe1a8ed2146c445f1139 (diff)
downloadopenvswitch-335562c0b9b190f61c0cc457a4098c2688561387.tar.gz
dpif: Rename dpif_get_name() to dpif_port_get_name(), update interface.
With multiple kinds of datapaths, code should not just use "dp%u" along with dpif_minor() to print a datapath name, because not all datapaths can sensibly be named that way. We want to use a function with a name like dpif_get_name() to retrieve a datapath name for printing to the user, in which case the existing dpif_get_name() function would be confusing. So rename the existing one to something more explicit.
Diffstat (limited to 'lib/dpif.h')
-rw-r--r--lib/dpif.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/dpif.h b/lib/dpif.h
index d81cf631e..a0e603114 100644
--- a/lib/dpif.h
+++ b/lib/dpif.h
@@ -40,7 +40,6 @@ int dpif_create(const char *name, struct dpif *);
void dpif_close(struct dpif *);
static inline unsigned int dpif_id(const struct dpif *dpif);
-int dpif_get_name(struct dpif *, char *name, size_t name_size);
int dpif_delete(struct dpif *);
@@ -59,6 +58,8 @@ int dpif_port_query_by_number(const struct dpif *, uint16_t port_no,
struct odp_port *);
int dpif_port_query_by_name(const struct dpif *, const char *devname,
struct odp_port *);
+int dpif_port_get_name(struct dpif *, uint16_t port_no,
+ char *name, size_t name_size);
int dpif_port_list(const struct dpif *, struct odp_port **, size_t *n_ports);
int dpif_port_group_set(struct dpif *, uint16_t group,