]> git.baikalelectronics.ru Git - kernel.git/commit
[IPV6]: Use the {DEFINE|REF}_PROTO_INUSE infrastructure
authorEric Dumazet <dada1@cosmosbay.com>
Tue, 6 Nov 2007 07:39:51 +0000 (23:39 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 7 Nov 2007 12:08:59 +0000 (04:08 -0800)
commitc77b53e6d873978e3d8aa6b62d695091ab2aa1bb
treefcbff269067e11c49a0fd99a568edf03036f2d55
parentbeaf877dd26b2b8784d30a6db90420c0d191d8db
[IPV6]: Use the {DEFINE|REF}_PROTO_INUSE infrastructure

Trivial patch to make "tcpv6,udpv6,udplitev6,rawv6" 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/ipv6/raw.c
net/ipv6/tcp_ipv6.c
net/ipv6/udp.c
net/ipv6/udplite.c