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-internal_dev.c | |
| 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-internal_dev.c')
| -rw-r--r-- | datapath/vport-internal_dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/datapath/vport-internal_dev.c b/datapath/vport-internal_dev.c index 11221333a..52bd6ce61 100644 --- a/datapath/vport-internal_dev.c +++ b/datapath/vport-internal_dev.c @@ -37,7 +37,7 @@ static struct net_device_stats *internal_dev_sys_stats(struct net_device *netdev struct net_device_stats *stats = &internal_dev_priv(netdev)->stats; if (vport) { - struct odp_vport_stats vport_stats; + struct rtnl_link_stats64 vport_stats; vport_get_stats(vport, &vport_stats); |
