aboutsummaryrefslogtreecommitdiff
path: root/lib/dpif.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-04-28 13:02:15 -0700
committerBen Pfaff <blp@nicira.com>2011-05-02 09:33:12 -0700
commit032aa6a3543621213f133aff3e31021dfd4bef43 (patch)
tree813298403be9f835b7b3af58016759c26d19dc6e /lib/dpif.h
parentd39808227b8a8e794a7cb0b990f4fcb0f5daadf5 (diff)
ovs-dpctl: Add -s option to print packet and byte counters.
Diffstat (limited to 'lib/dpif.h')
-rw-r--r--lib/dpif.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/dpif.h b/lib/dpif.h
index 0e0f407c..a039f113 100644
--- a/lib/dpif.h
+++ b/lib/dpif.h
@@ -23,6 +23,7 @@
#include <stdint.h>
#include "openflow/openflow.h"
#include "openvswitch/datapath-protocol.h"
+#include "netdev.h"
#include "util.h"
#ifdef __cplusplus
@@ -31,7 +32,6 @@ extern "C" {
struct dpif;
struct ds;
-struct netdev;
struct nlattr;
struct ofpbuf;
struct sset;
@@ -71,6 +71,7 @@ struct dpif_port {
char *name; /* Network device name, e.g. "eth0". */
char *type; /* Network device type, e.g. "system". */
uint32_t port_no; /* Port number within datapath. */
+ struct netdev_stats stats; /* Port statistics. */
};
void dpif_port_clone(struct dpif_port *, const struct dpif_port *);
void dpif_port_destroy(struct dpif_port *);