diff options
author | Ben Pfaff <blp@nicira.com> | 2011-04-28 13:02:15 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2011-05-02 09:33:12 -0700 |
commit | 032aa6a3543621213f133aff3e31021dfd4bef43 (patch) | |
tree | 813298403be9f835b7b3af58016759c26d19dc6e /lib/dpif.h | |
parent | d39808227b8a8e794a7cb0b990f4fcb0f5daadf5 (diff) |
ovs-dpctl: Add -s option to print packet and byte counters.
Diffstat (limited to 'lib/dpif.h')
-rw-r--r-- | lib/dpif.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 *); |