diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-07-16 23:32:45 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-16 23:32:45 -0400 |
commit | ed88098e25d77bef3b2ad8c9d8e2ebf454d9ccbf (patch) | |
tree | 1923cf073c299e1265cbe8a82de10cf95c91c791 /net/ipv4/tcp.c | |
parent | f2bf415cfed703de5ba94d25cdb160920c01fb00 (diff) |
mib: add net to NET_ADD_STATS_USER
Done with NET_XXX_STATS macros :)
To be continued...
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp.c')
-rw-r--r-- | net/ipv4/tcp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index dec0b8681119..eec8cf7c0247 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c | |||
@@ -1475,7 +1475,7 @@ int tcp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, | |||
1475 | /* __ Restore normal policy in scheduler __ */ | 1475 | /* __ Restore normal policy in scheduler __ */ |
1476 | 1476 | ||
1477 | if ((chunk = len - tp->ucopy.len) != 0) { | 1477 | if ((chunk = len - tp->ucopy.len) != 0) { |
1478 | NET_ADD_STATS_USER(LINUX_MIB_TCPDIRECTCOPYFROMBACKLOG, chunk); | 1478 | NET_ADD_STATS_USER(sock_net(sk), LINUX_MIB_TCPDIRECTCOPYFROMBACKLOG, chunk); |
1479 | len -= chunk; | 1479 | len -= chunk; |
1480 | copied += chunk; | 1480 | copied += chunk; |
1481 | } | 1481 | } |
@@ -1486,7 +1486,7 @@ do_prequeue: | |||
1486 | tcp_prequeue_process(sk); | 1486 | tcp_prequeue_process(sk); |
1487 | 1487 | ||
1488 | if ((chunk = len - tp->ucopy.len) != 0) { | 1488 | if ((chunk = len - tp->ucopy.len) != 0) { |
1489 | NET_ADD_STATS_USER(LINUX_MIB_TCPDIRECTCOPYFROMPREQUEUE, chunk); | 1489 | NET_ADD_STATS_USER(sock_net(sk), LINUX_MIB_TCPDIRECTCOPYFROMPREQUEUE, chunk); |
1490 | len -= chunk; | 1490 | len -= chunk; |
1491 | copied += chunk; | 1491 | copied += chunk; |
1492 | } | 1492 | } |
@@ -1601,7 +1601,7 @@ skip_copy: | |||
1601 | tcp_prequeue_process(sk); | 1601 | tcp_prequeue_process(sk); |
1602 | 1602 | ||
1603 | if (copied > 0 && (chunk = len - tp->ucopy.len) != 0) { | 1603 | if (copied > 0 && (chunk = len - tp->ucopy.len) != 0) { |
1604 | NET_ADD_STATS_USER(LINUX_MIB_TCPDIRECTCOPYFROMPREQUEUE, chunk); | 1604 | NET_ADD_STATS_USER(sock_net(sk), LINUX_MIB_TCPDIRECTCOPYFROMPREQUEUE, chunk); |
1605 | len -= chunk; | 1605 | len -= chunk; |
1606 | copied += chunk; | 1606 | copied += chunk; |
1607 | } | 1607 | } |