diff options
| author | Eric Dumazet <[email protected]> | 2008-01-13 05:27:41 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2008-01-28 23:01:58 +0000 |
| commit | 112d8cfcbf4f5ef0cf669cb5864f1206972076d6 (patch) | |
| tree | a47c7a31adb9fc95f47688717d4639ef832d8974 /net/core/utils.c | |
| parent | [NETFILTER] xt_policy.c: kill some bloat (diff) | |
| download | kernel-112d8cfcbf4f5ef0cf669cb5864f1206972076d6.tar.gz kernel-112d8cfcbf4f5ef0cf669cb5864f1206972076d6.zip | |
[FIB]: Reduce text size of net/ipv4/fib_trie.o
In struct tnode, we use two fields of 5 bits for 'pos' and 'bits'.
Switching to plain 'unsigned char' (8 bits) take the same space
because of compiler alignments, and reduce text size by 435 bytes
on i386.
On i386 :
$ size net/ipv4/fib_trie.o.before_patch net/ipv4/fib_trie.o
text data bss dec hex filename
13714 4 64 13782 35d6 net/ipv4/fib_trie.o.before
13279 4 64 13347 3423 net/ipv4/fib_trie.o
Signed-off-by: Eric Dumazet <[email protected]>
Acked-by: Stephen Hemminger <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/core/utils.c')
0 files changed, 0 insertions, 0 deletions
