diff options
author | Paolo Abeni <[email protected]> | 2023-10-10 10:03:04 +0200 |
---|---|---|
committer | Paolo Abeni <[email protected]> | 2023-10-10 10:03:05 +0200 |
commit | c41a38ef3bf78a86f94c3f67a19368a98c10ee2c (patch) | |
tree | 1008b5a803e12d4077026e516d6f7a75ebfc244d /include/net/tcp.h | |
parent | 8cea95b0bd7930367f11e2abceda6e096dd18943 (diff) | |
parent | 939463016b7a869d8b407cfcda4d6545de399698 (diff) |
Merge branch 'tcp-save-flowlabel-and-use-for-receiver-repathing'
David Morley says:
====================
tcp: save flowlabel and use for receiver repathing
This patch series stores the last received ipv6 flowlabel. This last
received flowlabel is then used to help decide whether a packet is
likely an RTO retransmit or the result of a TLP. This new information
is used to better inform the flowlabel change decision for data
receivers.
====================
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r-- | include/net/tcp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index 9eb0a2855311..7fdedf5c71f0 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h @@ -131,6 +131,8 @@ void tcp_time_wait(struct sock *sk, int state, int timeo); #define TCP_FIN_TIMEOUT_MAX (120 * HZ) /* max TCP_LINGER2 value (two minutes) */ #define TCP_DELACK_MAX ((unsigned)(HZ/5)) /* maximal time to delay before sending an ACK */ +static_assert((1 << ATO_BITS) > TCP_DELACK_MAX); + #if HZ >= 100 #define TCP_DELACK_MIN ((unsigned)(HZ/25)) /* minimal time to delay before sending an ACK */ #define TCP_ATO_MIN ((unsigned)(HZ/25)) |