[IPV4]: Use the {DEFINE|REF}_PROTO_INUSE infrastructure
commit47a31a6ffcca3b55149bccd5b99763e5eea60ac4
authorEric Dumazet <dada1@cosmosbay.com>
Tue, 6 Nov 2007 07:39:16 +0000 (5 23:39 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 7 Nov 2007 12:08:58 +0000 (7 04:08 -0800)
treede45b7c03799f16e717b9bf63b249bfe5f0f19a4
parent286ab3d46058840d68e5d7d52e316c1f7e98c59f
[IPV4]: Use the {DEFINE|REF}_PROTO_INUSE infrastructure

Trivial patch to make "tcp,udp,udplite,raw" 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/ipv4/raw.c
net/ipv4/tcp_ipv4.c
net/ipv4/udp.c
net/ipv4/udplite.c