diff options
-rw-r--r-- | include/net/tcp.h | 2 | ||||
-rw-r--r-- | net/ipv4/tcp_input.c | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index 265392470b26..e8ae90a8c35e 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
@@ -761,8 +761,6 @@ static inline unsigned int tcp_packets_in_flight(const struct tcp_sock *tp) | |||
761 | return tp->packets_out - tcp_left_out(tp) + tp->retrans_out; | 761 | return tp->packets_out - tcp_left_out(tp) + tp->retrans_out; |
762 | } | 762 | } |
763 | 763 | ||
764 | extern int tcp_limit_reno_sacked(struct tcp_sock *tp); | ||
765 | |||
766 | /* If cwnd > ssthresh, we may raise ssthresh to be half-way to cwnd. | 764 | /* If cwnd > ssthresh, we may raise ssthresh to be half-way to cwnd. |
767 | * The exception is rate halving phase, when cwnd is decreasing towards | 765 | * The exception is rate halving phase, when cwnd is decreasing towards |
768 | * ssthresh. | 766 | * ssthresh. |
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index 9f8a80ba17bd..d67b6e9cc540 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c | |||
@@ -1940,7 +1940,7 @@ out: | |||
1940 | /* Limits sacked_out so that sum with lost_out isn't ever larger than | 1940 | /* Limits sacked_out so that sum with lost_out isn't ever larger than |
1941 | * packets_out. Returns zero if sacked_out adjustement wasn't necessary. | 1941 | * packets_out. Returns zero if sacked_out adjustement wasn't necessary. |
1942 | */ | 1942 | */ |
1943 | int tcp_limit_reno_sacked(struct tcp_sock *tp) | 1943 | static int tcp_limit_reno_sacked(struct tcp_sock *tp) |
1944 | { | 1944 | { |
1945 | u32 holes; | 1945 | u32 holes; |
1946 | 1946 | ||