mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
tcp: remove tcp_tw_recycle
The tcp_tw_recycle was already broken for connections behind NAT, since the per-destination timestamp is not monotonically increasing for multiple machines behind a single destination address. After the randomization of TCP timestamp offsets in commit 8a5bd45f6616 (tcp: randomize tcp timestamp offsets for each connection), the tcp_tw_recycle is broken for all types of connections for the same reason: the timestamps received from a single machine is not monotonically increasing, anymore. Remove tcp_tw_recycle, since it is not functional. Also, remove the PAWSPassive SNMP counter since it is only used for tcp_tw_recycle, and simplify tcp_v4_route_req and tcp_v6_route_req since the strict argument is only set when tcp_tw_recycle is enabled. Signed-off-by: Soheil Hassas Yeganeh <[email protected]> Signed-off-by: Eric Dumazet <[email protected]> Signed-off-by: Neal Cardwell <[email protected]> Signed-off-by: Yuchung Cheng <[email protected]> Cc: Lutz Vieweg <[email protected]> Cc: Florian Westphal <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
d82bae12dc
commit
4396e46187
9 changed files with 9 additions and 59 deletions
|
|
@ -33,7 +33,6 @@ struct inet_timewait_death_row {
|
|||
atomic_t tw_count;
|
||||
|
||||
struct inet_hashinfo *hashinfo ____cacheline_aligned_in_smp;
|
||||
int sysctl_tw_recycle;
|
||||
int sysctl_max_tw_buckets;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -1810,8 +1810,7 @@ struct tcp_request_sock_ops {
|
|||
__u16 *mss);
|
||||
#endif
|
||||
struct dst_entry *(*route_req)(const struct sock *sk, struct flowi *fl,
|
||||
const struct request_sock *req,
|
||||
bool *strict);
|
||||
const struct request_sock *req);
|
||||
__u32 (*init_seq_tsoff)(const struct sk_buff *skb, u32 *tsoff);
|
||||
int (*send_synack)(const struct sock *sk, struct dst_entry *dst,
|
||||
struct flowi *fl, struct request_sock *req,
|
||||
|
|
|
|||
Loading…
Reference in a new issue