mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-05 13:51:52 +00:00
tcp: cache result of earlier divides when mss-aligning things
The results is very unlikely change every so often so we hardly need to divide again after doing that once for a connection. Yet, if divide still becomes necessary we detect that and do the right thing and again settle for non-divide state. Takes the u16 space which was previously taken by the plain xmit_size_goal. This should take care part of the tso vs non-tso difference we found earlier. Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
0c54b85f28
commit
2a3a041c4e
2 changed files with 13 additions and 2 deletions
|
@ -248,6 +248,7 @@ struct tcp_sock {
|
|||
/* inet_connection_sock has to be the first member of tcp_sock */
|
||||
struct inet_connection_sock inet_conn;
|
||||
u16 tcp_header_len; /* Bytes of tcp header to send */
|
||||
u16 xmit_size_goal_segs; /* Goal for segmenting output packets */
|
||||
|
||||
/*
|
||||
* Header prediction flags
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue