datapath: Always use generic stats for devices (vports)
authorPravin Shelar <pshelar@nicira.com>
Fri, 16 Sep 2011 02:36:17 +0000 (19:36 -0700)
committerPravin Shelar <pshelar@nicira.com>
Fri, 16 Sep 2011 02:36:17 +0000 (19:36 -0700)
commitf613a0d72c521ca3a4eeb2c29ac523f6fdf72667
tree40b7ff023ad2899dfe1d8e96cb1620ad0804c8c7
parent9197df76b46ff6fbe1f7a522961730ffc55a860d
datapath:  Always use generic stats for devices (vports)

    Currently ovs is using device stats for Linux devices and count them
itself in other situations. This leads to overlap with hardware stats,
inconsistencies, etc. It's much better to just always count the packets
flowing through the switch and let userspace do any merging that it wants.

Following patch removes vport->get_stats() interface. vport-stat is changed
to use new `struct ovs_vport_stat` rather than rtnl_link_stats64.
Definitions of rtnl_link_stats64 is removed from OVS.  dipf_port->stat is also
removed as aggregate stats are only available at netdev layer.

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
26 files changed:
acinclude.m4
configure.ac
datapath/datapath.c
datapath/linux/compat/include/linux/netdevice.h
datapath/linux/compat/netdevice.c
datapath/vport-capwap.c
datapath/vport-gre.c
datapath/vport-internal_dev.c
datapath/vport-netdev.c
datapath/vport-netdev.h
datapath/vport-patch.c
datapath/vport.c
datapath/vport.h
include/automake.mk
include/linux/automake.mk [deleted file]
include/linux/if_link.h [deleted file]
include/openvswitch/datapath-protocol.h
lib/dpif-linux.c
lib/dpif-linux.h
lib/dpif.c
lib/dpif.h
lib/netdev-linux.c
lib/netdev-linux.h
lib/netdev-vport.c
m4/openvswitch.m4
utilities/ovs-dpctl.c