|
@@ -63,7 +63,7 @@ static int tcp_out_of_resources(struct sock *sk, bool do_reset)
|
|
|
|
|
|
/* If peer does not open window for long time, or did not transmit
|
|
|
* anything for long time, penalize it. */
|
|
|
- if ((s32)(tcp_time_stamp - tp->lsndtime) > 2*TCP_RTO_MAX || !do_reset)
|
|
|
+ if ((s32)(tcp_jiffies32 - tp->lsndtime) > 2*TCP_RTO_MAX || !do_reset)
|
|
|
shift++;
|
|
|
|
|
|
/* If some dubious ICMP arrived, penalize even more. */
|
|
@@ -73,7 +73,7 @@ static int tcp_out_of_resources(struct sock *sk, bool do_reset)
|
|
|
if (tcp_check_oom(sk, shift)) {
|
|
|
/* Catch exceptional cases, when connection requires reset.
|
|
|
* 1. Last segment was sent recently. */
|
|
|
- if ((s32)(tcp_time_stamp - tp->lsndtime) <= TCP_TIMEWAIT_LEN ||
|
|
|
+ if ((s32)(tcp_jiffies32 - tp->lsndtime) <= TCP_TIMEWAIT_LEN ||
|
|
|
/* 2. Window is closed. */
|
|
|
(!tp->snd_wnd && !tp->packets_out))
|
|
|
do_reset = true;
|