Re: [ICMP]: change "struct socket *" percpu var to a "struct sock *"

2008-01-01 Thread David Miller
From: Eric Dumazet <[EMAIL PROTECTED]> Date: Tue, 01 Jan 2008 19:46:21 +0100 > Instead of storing a pointer to a 'struct socket' and dereferencing ->sk > to get "struct sock *" from it, just store a "struct sock *" pointer. > > This saves 75 bytes of text on x86 > > Signed-off-by: Eric Dumazet <

[ICMP]: change "struct socket *" percpu var to a "struct sock *"

2008-01-01 Thread Eric Dumazet
Instead of storing a pointer to a 'struct socket' and dereferencing ->sk to get "struct sock *" from it, just store a "struct sock *" pointer. This saves 75 bytes of text on x86 Signed-off-by: Eric Dumazet <[EMAIL PROTECTED]> diff --git a/net/ipv4/icmp.c b/net/ipv4/icmp.c index ccdef9a..fc66c8a