aboutsummaryrefslogtreecommitdiff
path: root/lib/dpif.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-01-26 09:24:59 -0800
committerBen Pfaff <blp@nicira.com>2011-01-27 21:08:38 -0800
commit996c1b3d7a4d6e82e1831ff8821e5fd7e1a5522c (patch)
treec4a7b6db50ce611b2db9bdf38eaa7241f43c21b5 /lib/dpif.h
parent1ba530f4b2cd5476a224dbbf87a3089a831a24b6 (diff)
datapath: Drop port information from odp_stats.
As with n_flows, n_ports was used regularly by userspace to determine how much memory to allocate when listing ports, but it is no longer needed for that. max_ports, on the other hand, is necessary but it is also a fixed value for the kernel datapath right now and if we expand it we can also come up with a way to report the expanded value. The remaining members of odp_stats are actually real statistics that I intend to keep. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'lib/dpif.h')
-rw-r--r--lib/dpif.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/dpif.h b/lib/dpif.h
index c51071da..4efabd0a 100644
--- a/lib/dpif.h
+++ b/lib/dpif.h
@@ -80,6 +80,7 @@ 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,
char *name, size_t name_size);
+int dpif_get_max_ports(const struct dpif *);
struct dpif_port_dump {
const struct dpif *dpif;