diff options
author | Alex Wang <alexw@nicira.com> | 2013-08-22 14:24:18 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2013-08-23 11:33:17 -0700 |
commit | 1dd16b9a274afbde46c9d9a4052d720d4cf3c3e2 (patch) | |
tree | 36851494544f1605c50c4c918ce24164ef692778 /lib/dpif.h | |
parent | 430dbb14c150ced081b42ec6314c7dc63661a1d1 (diff) |
dpif: Change get_max_ports() to return uint32_t.
The declaration of 'get_max_ports()' to return odp_port_t adds
unwanted complexity to coding. This commit changes it back to
return uint32_t type.
Signed-off-by: Alex Wang <alexw@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/dpif.h')
-rw-r--r-- | lib/dpif.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -415,7 +415,7 @@ int dpif_port_query_by_name(const struct dpif *, const char *devname, struct dpif_port *); int dpif_port_get_name(struct dpif *, odp_port_t port_no, char *name, size_t name_size); -odp_port_t dpif_get_max_ports(const struct dpif *); +uint32_t dpif_get_max_ports(const struct dpif *); uint32_t dpif_port_get_pid(const struct dpif *, odp_port_t port_no); struct dpif_port_dump { |