[ovs-git] [openvswitch/ovs] b9f825: netdev-linux: remove sum of vport stats and kernel...
winter4ling
noreply at github.com
Thu Apr 30 14:38:39 UTC 2020
Branch: refs/heads/master
Home: https://github.com/openvswitch/ovs
Commit: b9f825a5442a979b28a5ec18640129058d334e85
https://github.com/openvswitch/ovs/commit/b9f825a5442a979b28a5ec18640129058d334e85
Author: Jiang Lidong <jianglidong3 at jd.com>
Date: 2020-04-30 (Thu, 30 Apr 2020)
Changed paths:
M lib/netdev-linux.c
Log Message:
-----------
netdev-linux: remove sum of vport stats and kernel netdev stats.
When using kernel veth as OVS interface, doubled drop counter
value is shown when veth drops packets due to traffic overrun.
In netdev_linux_get_stats, it reads both vport stats and kernel
netdev stats, in case vport stats retrieve failure. If both of
them success, error counters are added to include errors from
different layers. But implementation of ovs_vport_get_stats in
kernel data path has included kernel netdev stats by calling
dev_get_stats. When drop or other error counters is not zero,
its value is doubled by netdev_linux_get_stats.
In this change, adding kernel netdev stats into vport stats
is removed, since vport stats includes all information of
kernel netdev stats.
Signed-off-by: Jiang Lidong <jianglidong3 at jd.com>
Signed-off-by: William Tu <u9012063 at gmail.com>
More information about the git
mailing list