[ovs-git] [openvswitch/ovs] 6d77ab: netdev-dpdk: Fix sw stats perf drop.
kevintraynor
noreply at github.com
Wed Dec 18 12:09:32 UTC 2019
Branch: refs/heads/master
Home: https://github.com/openvswitch/ovs
Commit: 6d77abf4f7ea5596ba8c4a7a27768e83e80a7e46
https://github.com/openvswitch/ovs/commit/6d77abf4f7ea5596ba8c4a7a27768e83e80a7e46
Author: Kevin Traynor <ktraynor at redhat.com>
Date: 2019-12-18 (Wed, 18 Dec 2019)
Changed paths:
M lib/netdev-dpdk.c
Log Message:
-----------
netdev-dpdk: Fix sw stats perf drop.
Accessing the sw stats in the vhost datapath of a PVP test
can incur a performance drop of ~2%.
Most of the time these stats will just be getting zero added
to them. By checking if there is a non-zero update first, we
can avoid accessing them when they won't be updated and avoid
the performance drop.
Fixes: 2f862c712e52 ("netdev-dpdk: Detailed packet drop statistics.")
Signed-off-by: Kevin Traynor <ktraynor at redhat.com>
Acked-by: Eelco Chaudron <echaudro at redhat.com>
Signed-off-by: Ilya Maximets <i.maximets at ovn.org>
More information about the git
mailing list