]> err.no Git - linux-2.6/commitdiff
[SCTP]: Pick up an orphaned sctp_sockets_allocated counter.
authorPavel Emelyanov <xemul@openvz.org>
Wed, 20 Feb 2008 08:23:01 +0000 (00:23 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Feb 2008 08:23:01 +0000 (00:23 -0800)
This counter is currently write-only.

Drawing an analogy with the similar tcp counter, I think
that this one should be pointed by the sockets_allocated
members of sctp_prot and sctpv6_prot.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Acked-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/socket.c

index d47d5787e2e5b8eba49dcb177c0d8b6549d993f2..44797ad88a05b9527e48f6fca47765308829e083 100644 (file)
@@ -6488,6 +6488,7 @@ struct proto sctp_prot = {
        .memory_pressure = &sctp_memory_pressure,
        .enter_memory_pressure = sctp_enter_memory_pressure,
        .memory_allocated = &sctp_memory_allocated,
+       .sockets_allocated = &sctp_sockets_allocated,
        REF_PROTO_INUSE(sctp)
 };
 
@@ -6521,6 +6522,7 @@ struct proto sctpv6_prot = {
        .memory_pressure = &sctp_memory_pressure,
        .enter_memory_pressure = sctp_enter_memory_pressure,
        .memory_allocated = &sctp_memory_allocated,
+       .sockets_allocated = &sctp_sockets_allocated,
        REF_PROTO_INUSE(sctpv6)
 };
 #endif /* defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) */