net: snmp: kill various STATS_USER() helpers
In the old days (before linux-3.0), SNMP counters were duplicated, one for user context, and one for BH context. After commit 8f0ea0fe ("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. We therefore kill SNMP_INC_STATS_USER(), SNMP_ADD_STATS_USER(), NET_INC_STATS_USER(), NET_ADD_STATS_USER(), SCTP_INC_STATS_USER(), SNMP_INC_STATS64_USER(), SNMP_ADD_STATS64_USER(), TCP_ADD_STATS_USER(), UDP_INC_STATS_USER(), UDP6_INC_STATS_USER(), and XFRM_INC_STATS_USER() Following patches will rename __BH helpers to make clear their usage is not tied to BH being disabled. Signed-off-by:Eric Dumazet <edumazet@google.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/net/ip.h 0 additions, 2 deletionsinclude/net/ip.h
- include/net/sctp/sctp.h 0 additions, 1 deletioninclude/net/sctp/sctp.h
- include/net/snmp.h 5 additions, 17 deletionsinclude/net/snmp.h
- include/net/tcp.h 4 additions, 5 deletionsinclude/net/tcp.h
- include/net/udp.h 7 additions, 7 deletionsinclude/net/udp.h
- include/net/xfrm.h 0 additions, 2 deletionsinclude/net/xfrm.h
- net/ipv4/tcp.c 6 additions, 6 deletionsnet/ipv4/tcp.c
- net/ipv4/udp.c 12 additions, 12 deletionsnet/ipv4/udp.c
- net/ipv6/udp.c 24 additions, 25 deletionsnet/ipv6/udp.c
- net/sctp/chunk.c 1 addition, 1 deletionnet/sctp/chunk.c
Please register or sign in to comment