android_kernel_xiaomi_sm8350/net/core
Eric Dumazet 65f7651788 [NET]: prot_inuse cleanups and optimizations
1) Cleanups (all functions are prefixed by sock_prot_inuse)

sock_prot_inc_use(prot) -> sock_prot_inuse_add(prot,-1)
sock_prot_dec_use(prot) -> sock_prot_inuse_add(prot,-1)
sock_prot_inuse()       -> sock_prot_inuse_get()

New functions :

sock_prot_inuse_init() and sock_prot_inuse_free() to abstract pcounter use.

2) if CONFIG_PROC_FS=n, we can zap 'inuse' member from "struct proto",
since nobody wants to read the inuse value.

This saves 1372 bytes on i386/SMP and some cpu cycles.

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-01-28 15:00:36 -08:00
..
datagram.c [NET] CORE: Introducing new memory accounting interface. 2008-01-28 15:00:18 -08:00
dev_mcast.c [NET]: Add some acquires/releases sparse annotations. 2008-01-28 15:00:31 -08:00
dev.c [NET]: Add some acquires/releases sparse annotations. 2008-01-28 15:00:31 -08:00
dst.c [NET]: dst_ifdown() cleanup 2008-01-28 14:57:05 -08:00
ethtool.c
fib_rules.c [IPV6]: Make fib6_rules_init to return an error code. 2008-01-28 14:56:46 -08:00
filter.c
flow.c [NET]: Convert init_timer into setup_timer 2008-01-28 14:53:35 -08:00
gen_estimator.c [NET]: Avoid divides in net/core/gen_estimator.c 2008-01-28 15:00:35 -08:00
gen_stats.c [NET]: Add some acquires/releases sparse annotations. 2008-01-28 15:00:31 -08:00
iovec.c
kmap_skb.h
link_watch.c
Makefile
neighbour.c [NET]: Add some acquires/releases sparse annotations. 2008-01-28 15:00:31 -08:00
net_namespace.c [NET]: Make netns cleanup to run in a separate queue 2008-01-28 14:54:35 -08:00
net-sysfs.c [ETH]: Combine format_addr() with print_mac(). 2008-01-28 15:00:05 -08:00
net-sysfs.h
netevent.c
netpoll.c [IPV4] net/core: Use ipv4_is_<type> 2008-01-28 14:58:15 -08:00
pktgen.c [IPV4] net/core: Use ipv4_is_<type> 2008-01-28 14:58:15 -08:00
request_sock.c [NET] net/core/request_sock.c: Remove unused exports. 2008-01-28 14:54:33 -08:00
rtnetlink.c [NET]: Make the netlink methods in rtnetlink handle multiple network namespaces 2008-01-28 14:54:26 -08:00
scm.c [NET]: Fix function put_cmsg() which may cause usr application memory overflow 2007-12-20 14:36:44 -08:00
skbuff.c [TCP]: Splice receive support. 2008-01-28 14:53:31 -08:00
sock.c [NET]: prot_inuse cleanups and optimizations 2008-01-28 15:00:36 -08:00
stream.c [NET] CORE: Introducing new memory accounting interface. 2008-01-28 15:00:18 -08:00
sysctl_net_core.c [NET] sysctl: make sysctl_somaxconn per-namespace 2008-01-28 14:56:57 -08:00
user_dma.c
utils.c [NET]: Move netfilter checksum helpers to net/core/utils.c 2008-01-28 14:55:14 -08:00