diff options
| author | Ben Pfaff <blp@nicira.com> | 2010-11-09 13:48:57 -0800 |
|---|---|---|
| committer | Ben Pfaff <blp@nicira.com> | 2010-11-09 13:48:57 -0800 |
| commit | ec61a01cd8ed73b13ffe042ddff4baf41f6b63e7 (patch) | |
| tree | 2d61330480404956d3a6110bb79ba1d506d9d7a5 /datapath/vport-netdev.h | |
| parent | 55b663b616c8e364bf49b945687c1c4fe4dd3cae (diff) | |
| download | openvswitch-ec61a01cd8ed73b13ffe042ddff4baf41f6b63e7.tar.gz | |
datapath: Use "struct rtnl_link_stats64" instead of "struct odp_vport_stats".
Linux 2.6.35 added struct rtnl_link_stats64, which as a set of 64-bit
network device counters is what the OVS datapath needs. We might as well
use it instead of our own.
This commit moves the if_link.h compat header from datapath/ into the
top-level include/ directory so that it is visible both to kernel and
userspace code.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'datapath/vport-netdev.h')
| -rw-r--r-- | datapath/vport-netdev.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/datapath/vport-netdev.h b/datapath/vport-netdev.h index 19f176cda..542ddfdb1 100644 --- a/datapath/vport-netdev.h +++ b/datapath/vport-netdev.h @@ -30,7 +30,7 @@ int netdev_set_addr(struct vport *, const unsigned char *addr); const char *netdev_get_name(const struct vport *); const unsigned char *netdev_get_addr(const struct vport *); struct kobject *netdev_get_kobj(const struct vport *); -int netdev_get_stats(const struct vport *, struct odp_vport_stats *); +int netdev_get_stats(const struct vport *, struct rtnl_link_stats64 *); unsigned netdev_get_dev_flags(const struct vport *); int netdev_is_running(const struct vport *); unsigned char netdev_get_operstate(const struct vport *); |
