diff options
| author | Jesse Gross <jesse@nicira.com> | 2010-06-09 12:54:34 -0700 |
|---|---|---|
| committer | Jesse Gross <jesse@nicira.com> | 2010-06-10 14:30:51 -0700 |
| commit | f4b6076acab233cfe02e7eaefdeafbb69dfae556 (patch) | |
| tree | 6d9b47884c3db784749e4f6e35a431ba9d071c58 /lib/netdev-vport.h | |
| parent | 7fbef77a30dc415e41b9803b5443ce4675149b19 (diff) | |
| download | openvswitch-f4b6076acab233cfe02e7eaefdeafbb69dfae556.tar.gz | |
netdev-vport: Use vport set_stats instead of internal dev.
In certain cases we require the ability to provide stats that are
added to the values collected by the kernel (currently only used
by bond fake devices). Internal devices previously implemented
this directly but now that their stats are now handled by the vport
layer the functionality has been moved there. This removes the
userspace code to set the stats and replaces it with a mechanism
to access the equivalent functionality in the vport layer.
Diffstat (limited to 'lib/netdev-vport.h')
| -rw-r--r-- | lib/netdev-vport.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/netdev-vport.h b/lib/netdev-vport.h index cb467f077..b4016606f 100644 --- a/lib/netdev-vport.h +++ b/lib/netdev-vport.h @@ -29,6 +29,7 @@ int netdev_vport_get_etheraddr(const struct netdev *, int netdev_vport_get_mtu(const struct netdev *, int *mtup); int netdev_vport_get_carrier(const struct netdev *, bool *carrier); int netdev_vport_get_stats(const struct netdev *, struct netdev_stats *); +int netdev_vport_set_stats(struct netdev *, const struct netdev_stats *); int netdev_vport_update_flags(struct netdev *, enum netdev_flags off, enum netdev_flags on, enum netdev_flags *old_flagsp); |
