]> git.neil.brown.name Git - history.git/commit
[NET] Reorder struct tcp_options_received
authorThomas Graf <tgraf@suug.ch>
Wed, 16 Mar 2005 01:29:26 +0000 (02:29 +0100)
committerThomas Graf <tgraf@suug.ch>
Wed, 16 Mar 2005 01:29:26 +0000 (02:29 +0100)
commitaff31da36349c9fb6e383ad45c0df48d06d1dd3a
tree15d53675aa6bb795862102abc88cf2017da47cee
parent15f9f6f1e878104b1557504c07d1e4aa7dd4fa8e
[NET] Reorder struct tcp_options_received

Reorders struct tcp_options_received to avoid padding and shrinks the
following fields to more appropriate sizes saving 8 bytes.

saw_tstamp: char -> 1 bit
tstamp_ok: char -> 1 bit
sack_ok: char -> 4 bits
wscale_ok: char -> 1 bit
snd_wscale: u8 -> 4 bits
rcv_wscale: u8 -> 4 bits
dsack: u8 -> 1 bit

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/tcp.h
net/ipv4/tcp_input.c
net/ipv4/tcp_output.c