[PATCH v3] net: xfrm: use core API for updating/providing stats

2020-11-13 Thread Lev Stipakov
Commit d3fd65484c781 ("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-

[PATCH v3] net: openvswitch: use core API to update/provide stats

2020-11-13 Thread Lev Stipakov
Commit d3fd65484c781 ("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-

[PATCH v3] net: mac80211: use core API for updating TX/RX stats

2020-11-13 Thread Lev Stipakov
Commits d3fd65484c781 ("net: core: add dev_sw_netstats_tx_add") 451b05f413d3f ("net: netdevice.h: sw_netstats_rx_add helper) have added API to update net device per-cpu TX/RX stats. Use core API instead of ieee80211_tx/rx_stats(). Signed-off-by: Lev Stipakov Reviewed-by:

Re: [PATCH v2 1/3] net: mac80211: use core API for updating TX/RX stats

2020-11-13 Thread Lev Stipakov
> Lev, please either post the patches separately (non-series) or make > them a proper series which has a cover letter etc. and CC folks on all > the patches. Understood, thanks. > Since there are no dependencies between the patches here you could have > gone for separate patches here. Shall I re

Re: [PATCH v2 1/3] net: mac80211: use core API for updating TX/RX stats

2020-11-13 Thread Lev Stipakov
Hi, > This looks like a 1/3 but I only ever saw this, not the others. The rest are similar changes for openvswitch and xfrm subsystems, so I've sent those to the list of maintainers I got from scripts/get_maintainer.pl. -- -Lev

[PATCH v2 3/3] net: xfrm: use core API for updating/providing stats

2020-11-13 Thread Lev Stipakov
Commit d3fd65484c781 ("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-

[PATCH v2 2/3] net: openvswitch: use core API to update/provide stats

2020-11-13 Thread Lev Stipakov
Commit d3fd65484c781 ("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-

[PATCH v2 1/3] net: mac80211: use core API for updating TX/RX stats

2020-11-13 Thread Lev Stipakov
Commits d3fd65484c781 ("net: core: add dev_sw_netstats_tx_add") 451b05f413d3f ("net: netdevice.h: sw_netstats_rx_add helper) have added API to update net device per-cpu TX/RX stats. Use core API instead of ieee80211_tx/rx_stats(). Signed-off-by: Lev Stipakov --- v

[PATCH 3/3] net: xfrm: use core API for updating TX stats

2020-11-12 Thread Lev Stipakov
Commit d3fd65484c781 ("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. Signed-off-by: Lev Stipakov --- net/xfrm/xfrm_interface.c | 7 +-- 1 file change

[PATCH 2/3] net: openvswitch: use core API for updating TX stats

2020-11-12 Thread Lev Stipakov
Commit d3fd65484c781 ("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, replace "len" variable with "skb->len". Signed-off-b

[PATCH 1/3] net: mac80211: use core API for updating TX stats

2020-11-12 Thread Lev Stipakov
Commit d3fd65484c781 ("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 ieee80211_tx_stats(). Signed-off-by: Lev Stipakov --- net/mac80211/tx.c | 16 +++