From: Tetsuo Handa Date: Tue, 16 Nov 2010 15:19:51 +0000 (+0000) Subject: filter: Optimize instruction revalidation code. X-Git-Tag: v2.6.38-rc1~476^2~513 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cba328fc5ede9091616e7296483840869b615a46;p=pandora-kernel.git filter: Optimize instruction revalidation code. Since repeating u16 value to u8 value conversion using switch() clause's case statement is wasteful, this patch introduces u16 to u8 mapping table and removes most of case statements. As a result, the size of net/core/filter.o is reduced by about 29% on x86. Signed-off-by: Tetsuo Handa Acked-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed