]> git.baikalelectronics.ru Git - kernel.git/commit
[SCTP]: Use the {DEFINE|REF}_PROTO_INUSE infrastructure
authorEric Dumazet <dada1@cosmosbay.com>
Tue, 6 Nov 2007 07:40:28 +0000 (23:40 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 7 Nov 2007 12:09:00 +0000 (04:09 -0800)
commit4db38e4fdfeccf5c23690d6b9c09f18090931570
treef80798af3cbd0a4006325037313a195f410dcd23
parentc77b53e6d873978e3d8aa6b62d695091ab2aa1bb
[SCTP]: Use the {DEFINE|REF}_PROTO_INUSE infrastructure

Trivial patch to make "sctcp,sctpv6" protocols uses the fast "inuse
sockets" infrastructure

Each protocol use then a static percpu var, instead of a dynamic one.
This saves some ram and some cpu cycles

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/socket.c