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-netdev.c | |
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-netdev.c')
-rw-r--r-- | lib/dpif-netdev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index 8f79128c..46eb743a 100644 --- a/lib/dpif-netdev.c +++ b/lib/dpif-netdev.c @@ -608,10 +608,10 @@ dpif_netdev_port_query_by_name(const struct dpif *dpif, const char *devname, return error; } -static odp_port_t +static uint32_t dpif_netdev_get_max_ports(const struct dpif *dpif OVS_UNUSED) { - return u32_to_odp(MAX_PORTS); + return MAX_PORTS; } static void |