Commit 0064c5c
net: xfrm: use core API for updating/providing stats
Commit d3fd654 ("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: Lev Stipakov <lev@openvpn.net>
Reviewed-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/20201113215939.147007-1-lev@openvpn.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent 865e6ae commit 0064c5c
1 file changed
+2
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
| 322 | + | |
328 | 323 | | |
329 | 324 | | |
330 | 325 | | |
| |||
538 | 533 | | |
539 | 534 | | |
540 | 535 | | |
541 | | - | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | | - | |
546 | | - | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | 536 | | |
551 | 537 | | |
552 | 538 | | |
553 | 539 | | |
554 | 540 | | |
555 | 541 | | |
556 | 542 | | |
557 | | - | |
558 | 543 | | |
559 | 544 | | |
560 | 545 | | |
561 | 546 | | |
562 | | - | |
| 547 | + | |
563 | 548 | | |
564 | 549 | | |
565 | 550 | | |
| |||
0 commit comments