diff options
author | Patrick McHardy <kaber@trash.net> | 2008-01-14 23:45:11 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 15:02:32 -0800 |
commit | a5e73c29d9243cc2e889a9d7155f331923eee655 (patch) | |
tree | 9d3a6a5734ce95d294eeaa7503cd1005eacfaeb3 /net/netfilter/nf_conntrack_proto_sctp.c | |
parent | 77e2420b85573f57c2774775ead81ebb500b803d (diff) | |
download | kernel_samsung_smdk4412-a5e73c29d9243cc2e889a9d7155f331923eee655.zip kernel_samsung_smdk4412-a5e73c29d9243cc2e889a9d7155f331923eee655.tar.gz kernel_samsung_smdk4412-a5e73c29d9243cc2e889a9d7155f331923eee655.tar.bz2 |
[NETFILTER]: nf_conntrack_{tcp,sctp}: shrink state table
The TCP and SCTP conntrack state transition tables only holds
small numbers, but gcc uses 4 byte per entry for the enum. Switching
to an u8 reduces the size from 480 to 120 bytes for TCP and from
576 to 144 bytes for SCTP.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netfilter/nf_conntrack_proto_sctp.c')
-rw-r--r-- | net/netfilter/nf_conntrack_proto_sctp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nf_conntrack_proto_sctp.c b/net/netfilter/nf_conntrack_proto_sctp.c index 47c1dbe..9a5ec53 100644 --- a/net/netfilter/nf_conntrack_proto_sctp.c +++ b/net/netfilter/nf_conntrack_proto_sctp.c @@ -110,7 +110,7 @@ cookie echoed to closed. */ /* SCTP conntrack state transitions */ -static const enum sctp_conntrack sctp_conntracks[2][9][SCTP_CONNTRACK_MAX] = { +static const u8 sctp_conntracks[2][9][SCTP_CONNTRACK_MAX] = { { /* ORIGINAL */ /* sNO, sCL, sCW, sCE, sES, sSS, sSR, sSA */ |