Skip to content
Commit 865e6ae0 authored by Lev Stipakov's avatar Lev Stipakov Committed by Jakub Kicinski
Browse files

net: openvswitch: use core API to update/provide stats



Commit d3fd6548 ("net: core: add dev_sw_netstats_tx_add") has added
function "dev_sw_netstats_tx_add()" to update net device per-cpu TX
stats.

Use this function instead of own code.

While on it, remove internal_get_stats() and replace it
with dev_get_tstats64().

Signed-off-by: default avatarLev Stipakov <lev@openvpn.net>
Reviewed-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/20201113215336.145998-1-lev@openvpn.net


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent cf70b5cf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment