netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 00/17] net: snmp: update SNMP methods
@ 2016-04-27 23:44 Eric Dumazet
  2016-04-27 23:44 ` [PATCH net-next 01/17] net: snmp: kill various STATS_USER() helpers Eric Dumazet
                   ` (18 more replies)
  0 siblings, 19 replies; 24+ messages in thread
From: Eric Dumazet @ 2016-04-27 23:44 UTC (permalink / raw)
  To: David S . Miller; +Cc: netdev, Eric Dumazet, Eric Dumazet

In the old days (before linux-3.0), SNMP counters were duplicated,
one set for user context, and anther one for BH context.

After commit 8f0ea0fe3a03 ("snmp: reduce percpu needs by 50%")
we have a single copy, and what really matters is preemption being
enabled or disabled, since we use this_cpu_inc() or __this_cpu_inc()
respectively.

This patch series kills the obsolete STATS_USER() helpers,
and rename all XXX_BH() helpers to __XXX() ones, to more
closely match conventions used to update per cpu variables.

This is probably going to hurt maintainers job for a while,
since cherry-picks will not be clean, but this had to be
cleaned at one point. I am so sorry guys.

Eric Dumazet (17):
  net: snmp: kill various STATS_USER() helpers
  dccp: rename DCCP_INC_STATS_BH()
  net: rename ICMP_INC_STATS_BH()
  net: udp: rename UDP_INC_STATS_BH()
  net: xfrm: kill XFRM_INC_STATS_BH()
  net: tcp: rename TCP_INC_STATS_BH
  net: icmp: rename ICMPMSGIN_INC_STATS_BH()
  net: sctp: rename SCTP_INC_STATS_BH()
  net: rename IP_INC_STATS_BH()
  net: rename ICMP6_INC_STATS_BH()
  net: rename IP_ADD_STATS_BH()
  net: rename IP_UPD_PO_STATS_BH()
  net: rename NET_{ADD|INC}_STATS_BH()
  ipv6: rename IP6_INC_STATS_BH()
  ipv6: rename IP6_UPD_PO_STATS_BH()
  ipv6: kill ICMP6MSGIN_INC_STATS_BH()
  net: snmp: kill STATS_BH macros

 include/net/icmp.h              |   4 +-
 include/net/ip.h                |  12 ++---
 include/net/ipv6.h              |  48 +++++++++---------
 include/net/sctp/sctp.h         |   7 ++-
 include/net/snmp.h              |  44 ++++++----------
 include/net/tcp.h               |  15 +++---
 include/net/udp.h               |  34 ++++++-------
 include/net/xfrm.h              |   4 --
 net/bridge/br_netfilter_hooks.c |   6 +--
 net/bridge/br_netfilter_ipv6.c  |  10 ++--
 net/core/dev.c                  |   4 +-
 net/dccp/dccp.h                 |   6 +--
 net/dccp/input.c                |   2 +-
 net/dccp/ipv4.c                 |  24 ++++-----
 net/dccp/ipv6.c                 |  24 ++++-----
 net/dccp/minisocks.c            |   2 +-
 net/dccp/options.c              |   2 +-
 net/dccp/timer.c                |   8 +--
 net/ipv4/arp.c                  |   2 +-
 net/ipv4/icmp.c                 |  18 +++----
 net/ipv4/inet_connection_sock.c |   4 +-
 net/ipv4/inet_hashtables.c      |   2 +-
 net/ipv4/inet_timewait_sock.c   |   4 +-
 net/ipv4/ip_forward.c           |   6 +--
 net/ipv4/ip_fragment.c          |  14 +++---
 net/ipv4/ip_input.c             |  34 ++++++-------
 net/ipv4/route.c                |   6 +--
 net/ipv4/syncookies.c           |   4 +-
 net/ipv4/tcp.c                  |  18 +++----
 net/ipv4/tcp_cdg.c              |  20 ++++----
 net/ipv4/tcp_cubic.c            |  20 ++++----
 net/ipv4/tcp_fastopen.c         |  14 +++---
 net/ipv4/tcp_input.c            | 108 +++++++++++++++++++++-------------------
 net/ipv4/tcp_ipv4.c             |  40 +++++++--------
 net/ipv4/tcp_minisocks.c        |  14 +++---
 net/ipv4/tcp_output.c           |  18 +++----
 net/ipv4/tcp_recovery.c         |   4 +-
 net/ipv4/tcp_timer.c            |  22 ++++----
 net/ipv4/udp.c                  |  72 +++++++++++++--------------
 net/ipv6/exthdrs.c              |  66 ++++++++++++------------
 net/ipv6/icmp.c                 |  12 ++---
 net/ipv6/inet6_hashtables.c     |   2 +-
 net/ipv6/ip6_input.c            |  32 ++++++------
 net/ipv6/ip6_output.c           |  34 ++++++-------
 net/ipv6/ip6mr.c                |   8 +--
 net/ipv6/reassembly.c           |  32 ++++++------
 net/ipv6/syncookies.c           |   4 +-
 net/ipv6/tcp_ipv6.c             |  34 ++++++-------
 net/ipv6/udp.c                  |  91 +++++++++++++++++----------------
 net/rxrpc/ar-input.c            |   4 +-
 net/sctp/chunk.c                |   2 +-
 net/sctp/input.c                |  16 +++---
 net/sctp/ipv6.c                 |   2 +-
 net/sunrpc/xprtsock.c           |   4 +-
 54 files changed, 512 insertions(+), 531 deletions(-)

-- 
2.8.0.rc3.226.g39d4020

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2016-04-28 15:55 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-27 23:44 [PATCH net-next 00/17] net: snmp: update SNMP methods Eric Dumazet
2016-04-27 23:44 ` [PATCH net-next 01/17] net: snmp: kill various STATS_USER() helpers Eric Dumazet
2016-04-27 23:44 ` [PATCH net-next 02/17] dccp: rename DCCP_INC_STATS_BH() Eric Dumazet
2016-04-27 23:44 ` [PATCH net-next 03/17] net: rename ICMP_INC_STATS_BH() Eric Dumazet
2016-04-27 23:44 ` [PATCH net-next 04/17] net: udp: rename UDP_INC_STATS_BH() Eric Dumazet
2016-04-27 23:44 ` [PATCH net-next 05/17] net: xfrm: kill XFRM_INC_STATS_BH() Eric Dumazet
2016-04-27 23:44 ` [PATCH net-next 06/17] net: tcp: rename TCP_INC_STATS_BH Eric Dumazet
2016-04-27 23:44 ` [PATCH net-next 07/17] net: icmp: rename ICMPMSGIN_INC_STATS_BH() Eric Dumazet
2016-04-27 23:44 ` [PATCH net-next 08/17] net: sctp: rename SCTP_INC_STATS_BH() Eric Dumazet
2016-04-27 23:44 ` [PATCH net-next 09/17] net: rename IP_INC_STATS_BH() Eric Dumazet
2016-04-27 23:44 ` [PATCH net-next 10/17] net: rename ICMP6_INC_STATS_BH() Eric Dumazet
2016-04-27 23:44 ` [PATCH net-next 11/17] net: rename IP_ADD_STATS_BH() Eric Dumazet
2016-04-27 23:44 ` [PATCH net-next 12/17] net: rename IP_UPD_PO_STATS_BH() Eric Dumazet
2016-04-27 23:44 ` [PATCH net-next 13/17] net: rename NET_{ADD|INC}_STATS_BH() Eric Dumazet
2016-04-27 23:44 ` [PATCH net-next 14/17] ipv6: rename IP6_INC_STATS_BH() Eric Dumazet
2016-04-27 23:44 ` [PATCH net-next 15/17] ipv6: rename IP6_UPD_PO_STATS_BH() Eric Dumazet
2016-04-27 23:44 ` [PATCH net-next 16/17] ipv6: kill ICMP6MSGIN_INC_STATS_BH() Eric Dumazet
2016-04-27 23:44 ` [PATCH net-next 17/17] net: snmp: kill STATS_BH macros Eric Dumazet
2016-04-28  2:48 ` [PATCH net-next 00/17] net: snmp: update SNMP methods David Miller
2016-04-28 10:05 ` Nicolas Dichtel
2016-04-28 12:00   ` Eric Dumazet
2016-04-28 12:20     ` Nicolas Dichtel
2016-04-28 13:33       ` [PATCH net-next] net: snmp: fix 64bit stats on 32bit arches Eric Dumazet
2016-04-28 15:55         ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).