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 /utilities | |
parent | 6822daf20693ae6b6b98bb4a5c44b67793e16792 (diff) | |
download | openvswitch-9b56fe137d3c734edcfa00631a960920f04c866a.tar.gz |
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 'utilities')
-rw-r--r-- | utilities/ovs-dpctl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utilities/ovs-dpctl.c b/utilities/ovs-dpctl.c index 622423777..52441b96c 100644 --- a/utilities/ovs-dpctl.c +++ b/utilities/ovs-dpctl.c @@ -248,7 +248,7 @@ dpctl_add_if(int argc OVS_UNUSED, char *argv[]) char *save_ptr = NULL; struct netdev *netdev = NULL; struct smap args; - uint16_t port_no = UINT16_MAX; + uint32_t port_no = UINT32_MAX; char *option; int error; @@ -416,7 +416,7 @@ next: } static bool -get_port_number(struct dpif *dpif, const char *name, uint16_t *port) +get_port_number(struct dpif *dpif, const char *name, uint32_t *port) { struct dpif_port dpif_port; @@ -440,7 +440,7 @@ dpctl_del_if(int argc OVS_UNUSED, char *argv[]) run(parsed_dpif_open(argv[1], false, &dpif), "opening datapath"); for (i = 2; i < argc; i++) { const char *name = argv[i]; - uint16_t port; + uint32_t port; int error; if (!name[strspn(name, "0123456789")]) { |