kernel-hacking-2024-linux-s.../net/core
Eric Dumazet fa438ccfdf [NET]: Keep sk_backlog near sk_lock
sk_backlog is a critical field of struct sock. (known famous words)

It is (ab)used in hot paths, in particular in release_sock(), tcp_recvmsg(),
tcp_v4_rcv(), sk_receive_skb().

It really makes sense to place it next to sk_lock, because sk_backlog is only
used after sk_lock locked (and thus memory cache line in L1 cache). This
should reduce cache misses and sk_lock acquisition time.

(In theory, we could only move the head pointer near sk_lock, and leaving tail
far away, because 'tail' is normally not so hot, but keep it simple :) )

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2007-04-25 22:23:27 -07:00
..
datagram.c
dev.c [PATCH] net: Ignore sysfs network device rename bugs. 2007-04-04 08:51:52 -07:00
dev_mcast.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
dst.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
ethtool.c
fib_rules.c [NET]: Change "not found" return value for rule lookup 2007-04-02 13:30:51 -07:00
filter.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
flow.c
gen_estimator.c
gen_stats.c
iovec.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
kmap_skb.h
link_watch.c
Makefile
neighbour.c [NET]: Set a separate lockdep class for neighbour table's proxy_queue 2007-04-17 13:13:31 -07:00
net-sysfs.c Merge branch 'gfar' of master.kernel.org:/pub/scm/linux/kernel/git/galak/powerpc into upstream 2007-02-17 15:09:59 -05:00
netevent.c
netpoll.c [NET]: Fix UDP checksum issue in net poll mode. 2007-04-17 13:13:26 -07:00
pktgen.c [PKTGEN]: Add try_to_freeze() 2007-04-12 14:45:32 -07:00
request_sock.c
rtnetlink.c [PATCH] WE-22 : prevent information leak on 64 bit 2007-03-27 14:10:26 -04:00
scm.c
skbuff.c [NET]: Get rid of alloc_skb_from_cache 2007-04-17 13:13:16 -07:00
sock.c [NET]: Keep sk_backlog near sk_lock 2007-04-25 22:23:27 -07:00
stream.c
sysctl_net_core.c
user_dma.c
utils.c
wireless.c [PATCH] WE-22 : prevent information leak on 64 bit 2007-03-27 14:10:26 -04:00