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

2 messages, 2 authors, 2008-01-02 · open the first message on its own page

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

From: Eric Dumazet <hidden>
Date: 2008-01-01 18:46:33

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 <redacted>

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

From: David Miller <davem@davemloft.net>
Date: 2008-01-02 03:21:12

From: Eric Dumazet <redacted>
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 <redacted>
Applied, thanks Eric.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help