diff options
author | Eric Dumazet <edumazet@google.com> | 2015-10-09 05:33:23 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-10-13 05:28:22 +0300 |
commit | ed53d0ab761f5c71d77c8dc05fd19c0a851200db (patch) | |
tree | e8020f7b24c958497a92b38fbf0dd89e99b8261e /include/net/request_sock.h | |
parent | 8e5eb54d303b7cb1174977ca79030e135728c95e (diff) | |
download | linux-ed53d0ab761f5c71d77c8dc05fd19c0a851200db.tar.xz |
net: shrink struct sock and request_sock by 8 bytes
One 32bit hole is following skc_refcnt, use it.
skc_incoming_cpu can also be an union for request_sock rcv_wnd.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/request_sock.h')
-rw-r--r-- | include/net/request_sock.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/net/request_sock.h b/include/net/request_sock.h index 6b818b77d5e5..2e73748956d5 100644 --- a/include/net/request_sock.h +++ b/include/net/request_sock.h @@ -51,15 +51,14 @@ struct request_sock { #define rsk_refcnt __req_common.skc_refcnt #define rsk_hash __req_common.skc_hash #define rsk_listener __req_common.skc_listener +#define rsk_window_clamp __req_common.skc_window_clamp +#define rsk_rcv_wnd __req_common.skc_rcv_wnd struct request_sock *dl_next; u16 mss; u8 num_retrans; /* number of retransmits */ u8 cookie_ts:1; /* syncookie: encode tcpopts in timestamp */ u8 num_timeout:7; /* number of timeouts */ - /* The following two fields can be easily recomputed I think -AK */ - u32 window_clamp; /* window clamp at creation time */ - u32 rcv_wnd; /* rcv_wnd offered first time */ u32 ts_recent; struct timer_list rsk_timer; const struct request_sock_ops *rsk_ops; |