linux-stable-rt/net/core
Herbert Xu a59322be07 [UDP]: Only increment counter on first peek/recv
The previous move of the the UDP inDatagrams counter caused each
peek of the same packet to be counted separately.  This may be
undesirable.

This patch fixes this by adding a bit to sk_buff to record whether
this packet has already been seen through skb_recv_datagram.  We
then only increment the counter when the packet is seen for the
first time.

The only dodgy part is the fact that skb_recv_datagram doesn't have
a good way of returning this new bit of information.  So I've added
a new function __skb_recv_datagram that does return this and made
skb_recv_datagram a wrapper around it.

The plan is to eventually replace all uses of skb_recv_datagram with
this new function at which time it can be renamed its proper name.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-01-28 14:56:34 -08:00
..
Makefile
datagram.c [UDP]: Only increment counter on first peek/recv 2008-01-28 14:56:34 -08:00
dev.c [NET]: Make macro to specify the ptype_base size 2008-01-28 14:55:04 -08:00
dev_mcast.c [NET]: Consolidate net namespace related proc files creation. 2008-01-28 14:54:28 -08:00
dst.c [NET]: Eliminate duplicate copies of dst_discard 2008-01-28 14:53:37 -08:00
ethtool.c
fib_rules.c [NET]: Make rtnetlink infrastructure network namespace aware (v3) 2008-01-28 14:54:25 -08:00
filter.c
flow.c [NET]: Convert init_timer into setup_timer 2008-01-28 14:53:35 -08:00
gen_estimator.c
gen_stats.c
iovec.c
kmap_skb.h
link_watch.c
neighbour.c [NEIGH]: Use the ctl paths to create neighbours sysctls 2008-01-28 14:55:24 -08:00
net-sysfs.c [NET]: Nicer WARN_ON in netstat_show 2008-01-28 14:55:10 -08:00
net-sysfs.h
net_namespace.c [NET]: Make netns cleanup to run in a separate queue 2008-01-28 14:54:35 -08:00
netevent.c
netpoll.c [NETPOLL]: Don't need rx_flags. 2008-01-28 14:54:18 -08:00
pktgen.c
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
skbuff.c [TCP]: Splice receive support. 2008-01-28 14:53:31 -08:00
sock.c [NET]: Name magic constants in sock_wake_async() 2008-01-28 14:55:03 -08:00
stream.c [NET]: Name magic constants in sock_wake_async() 2008-01-28 14:55:03 -08:00
sysctl_net_core.c [NET]: Isolate the net/core/ sysctl table 2008-01-28 14:56:26 -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