netdev-linux: favor netlink stats for physical ports mainstream
authorAndy Zhou <azhou@nicira.com>
Mon, 28 Apr 2014 22:46:30 +0000 (15:46 -0700)
committerAndy Zhou <azhou@nicira.com>
Sat, 3 May 2014 01:10:46 +0000 (18:10 -0700)
commit04c881eb6441fff2e91c9b9e23502bc554c0f437
treefe4bea5ecc98e55039b724eb68f45d87b0dea09d
parent41ca1e0afb4b261a217c9fdaf672ef606e8434f9
netdev-linux: favor netlink stats for physical ports

Currently physical ports stats are collected from kernel datapath.
However, those counter do not reflect actual wire packet counters
when GSO, TSO or GRO are enabled by the NIC. In the meantime, the
stats collected form routing stack does. While both stats are valid,
Reporting kernel netdev stats for packet counts and byte counts make
it easier to correlate those numbers with external measurements.

Signed-off-by: Andy Zhou <azhou@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/netdev-linux.c