|
@@ -80,7 +80,6 @@
|
|
#include <linux/static_key.h>
|
|
#include <linux/static_key.h>
|
|
|
|
|
|
int sysctl_tcp_max_orphans __read_mostly = NR_FILE;
|
|
int sysctl_tcp_max_orphans __read_mostly = NR_FILE;
|
|
-int sysctl_tcp_invalid_ratelimit __read_mostly = HZ/2;
|
|
|
|
|
|
|
|
#define FLAG_DATA 0x01 /* Incoming frame contained data. */
|
|
#define FLAG_DATA 0x01 /* Incoming frame contained data. */
|
|
#define FLAG_WIN_UPDATE 0x02 /* Incoming ACK was a window update. */
|
|
#define FLAG_WIN_UPDATE 0x02 /* Incoming ACK was a window update. */
|
|
@@ -3403,7 +3402,7 @@ static bool __tcp_oow_rate_limited(struct net *net, int mib_idx,
|
|
if (*last_oow_ack_time) {
|
|
if (*last_oow_ack_time) {
|
|
s32 elapsed = (s32)(tcp_jiffies32 - *last_oow_ack_time);
|
|
s32 elapsed = (s32)(tcp_jiffies32 - *last_oow_ack_time);
|
|
|
|
|
|
- if (0 <= elapsed && elapsed < sysctl_tcp_invalid_ratelimit) {
|
|
|
|
|
|
+ if (0 <= elapsed && elapsed < net->ipv4.sysctl_tcp_invalid_ratelimit) {
|
|
NET_INC_STATS(net, mib_idx);
|
|
NET_INC_STATS(net, mib_idx);
|
|
return true; /* rate-limited: don't send yet! */
|
|
return true; /* rate-limited: don't send yet! */
|
|
}
|
|
}
|