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

net: xfrm: use core API for updating/providing 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 xfrmi_get_stats64() 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/20201113215939.147007-1-lev@openvpn.net


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 865e6ae0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment