diff options
author | Justin Pettit <jpettit@nicira.com> | 2012-09-26 16:22:47 -0700 |
---|---|---|
committer | Justin Pettit <jpettit@nicira.com> | 2012-11-01 22:54:27 -0700 |
commit | 9b56fe137d3c734edcfa00631a960920f04c866a (patch) | |
tree | d8cdc52a9d0ae483c1db7b4600cce30107e85df9 /lib/dpif.h | |
parent | 6822daf20693ae6b6b98bb4a5c44b67793e16792 (diff) |
Always treat datapath ports as 32 bits.
Most of the code referred to datapath ports as 32-bit values, but a few
places still used 16-bit references.
Signed-off-by: Justin Pettit <jpettit@nicira.com>
Diffstat (limited to 'lib/dpif.h')
-rw-r--r-- | lib/dpif.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -72,8 +72,8 @@ int dpif_get_dp_stats(const struct dpif *, struct dpif_dp_stats *); /* Port operations. */ -int dpif_port_add(struct dpif *, struct netdev *, uint16_t *port_nop); -int dpif_port_del(struct dpif *, uint16_t port_no); +int dpif_port_add(struct dpif *, struct netdev *, uint32_t *port_nop); +int dpif_port_del(struct dpif *, uint32_t port_no); /* A port within a datapath. * @@ -85,14 +85,14 @@ struct dpif_port { }; void dpif_port_clone(struct dpif_port *, const struct dpif_port *); void dpif_port_destroy(struct dpif_port *); -int dpif_port_query_by_number(const struct dpif *, uint16_t port_no, +int dpif_port_query_by_number(const struct dpif *, uint32_t port_no, struct dpif_port *); int dpif_port_query_by_name(const struct dpif *, const char *devname, struct dpif_port *); -int dpif_port_get_name(struct dpif *, uint16_t port_no, +int dpif_port_get_name(struct dpif *, uint32_t port_no, char *name, size_t name_size); int dpif_get_max_ports(const struct dpif *); -uint32_t dpif_port_get_pid(const struct dpif *, uint16_t port_no); +uint32_t dpif_port_get_pid(const struct dpif *, uint32_t port_no); struct dpif_port_dump { const struct dpif *dpif; |