[ovs-dev] [PATCH] netdev-dpdk: Fix sw stats perf drop.

Ilya Maximets i.maximets at ovn.org
Wed Dec 18 12:11:55 UTC 2019


On 17.12.2019 16:07, Kevin Traynor wrote:
> 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>
> ---

We actually have similar checks for physical ports, so it's sane
to have them for vhost too.

Thanks Kevin and Eelco! Applied to master.

Best regards, Ilya Maximets.


More information about the dev mailing list