@@ -99,7 +99,8 @@ static int tcp_orphan_retries(struct sock *sk, int alive)
return retries;
}
-static void tcp_mtu_probing(struct inet_connection_sock *icsk, struct sock *sk)
+static void tcp_blackhole_probe(struct inet_connection_sock *icsk,
+ struct sock *sk)
{
struct net *net = sock_net(sk);
@@ -177,7 +178,7 @@ static int tcp_write_timeout(struct sock *sk)
} else {
if (retransmits_timed_out(sk, sysctl_tcp_retries1, 0, 0)) {
/* Black hole detection */
- tcp_mtu_probing(icsk, sk);
+ tcp_blackhole_probe(icsk, sk);
dst_negative_advice(sk);
}
This is a cosmetic patch by using tcp_blackhole_probe to clear confusion between tcp_mtu_probing and tcp_mtu_probe. In essence keep running into tcp_mtu_probing is a sign of blackhole incident. Signed-off-by: Fan Du <fan.du@intel.com> --- net/ipv4/tcp_timer.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)