summaryrefslogtreecommitdiffstats
path: root/net/core/sock.c
diff options
context:
space:
mode:
authorWang Chen <wangchen@cn.fujitsu.com>2007-11-13 20:30:01 -0800
committerDavid S. Miller <davem@davemloft.net>2008-01-28 14:53:33 -0800
commit33c732c36169d7022ad7d6eb474b0c9be43a2dc1 (patch)
treea9ac2b8a488cc288bfd2f407d8ad9dd592b29055 /net/core/sock.c
parent6ff7751d06f63131830102ffa0c9a38b313f100e (diff)
downloadblackbird-op-linux-33c732c36169d7022ad7d6eb474b0c9be43a2dc1.tar.gz
blackbird-op-linux-33c732c36169d7022ad7d6eb474b0c9be43a2dc1.zip
[IPV4]: Add raw drops counter.
Add raw drops counter for IPv4 in /proc/net/raw . Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/sock.c')
-rw-r--r--net/core/sock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/sock.c b/net/core/sock.c
index c519b439b8b1..2029d095b4c5 100644
--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -1611,6 +1611,7 @@ void sock_init_data(struct socket *sock, struct sock *sk)
sk->sk_stamp = ktime_set(-1L, -1L);
atomic_set(&sk->sk_refcnt, 1);
+ atomic_set(&sk->sk_drops, 0);
}
void fastcall lock_sock_nested(struct sock *sk, int subclass)
OpenPOWER on IntegriCloud