]> git.proxmox.com Git - mirror_kronosnet.git/commitdiff
[PMTUd] make PMTUd force_run notification more quiet
authorFabio M. Di Nitto <fdinitto@redhat.com>
Sat, 30 Dec 2017 05:30:41 +0000 (06:30 +0100)
committerFabio M. Di Nitto <fdinitto@redhat.com>
Wed, 3 Jan 2018 13:31:03 +0000 (14:31 +0100)
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
libknet/transport_udp.c

index aec42d07f49f97f55aaae40fb86bc884c91fcb65..d793c9b77ce937c35b865d84ced1df69b2879bca 100644 (file)
@@ -347,8 +347,10 @@ static int read_errs_from_sock(knet_handle_t knet_h, int sockfd)
                                                                 */
                                                                if (!pthread_mutex_trylock(&knet_h->pmtud_mutex)) {
                                                                        if (!knet_h->pmtud_running) {
-                                                                               log_debug(knet_h, KNET_SUB_TRANSP_UDP, "Notifying PMTUd to rerun");
-                                                                               knet_h->pmtud_forcerun = 1;
+                                                                               if (!knet_h->pmtud_forcerun) {
+                                                                                       log_debug(knet_h, KNET_SUB_TRANSP_UDP, "Notifying PMTUd to rerun");
+                                                                                       knet_h->pmtud_forcerun = 1;
+                                                                               }
                                                                        }
                                                                        pthread_mutex_unlock(&knet_h->pmtud_mutex);
                                                                }