]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: neighbor: downgrade log level
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 28 Apr 2021 13:18:45 +0000 (22:18 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 28 Apr 2021 18:16:30 +0000 (03:16 +0900)
As commented in the code, kernel sends messages about neighbors after
a link is removed.

src/network/networkd-neighbor.c

index ef09665a85451fa101cb1d393563b1ce1afd8389..205351c2a2d6ab391aa2ee7c534246d03819f8f0 100644 (file)
@@ -500,10 +500,9 @@ int manager_rtnl_process_neighbor(sd_netlink *rtnl, sd_netlink_message *message,
 
         r = link_get(m, ifindex, &link);
         if (r < 0 || !link) {
-                /* when enumerating we might be out of sync, but we will get the neighbor again, so just
-                 * ignore it */
-                if (!m->enumerating)
-                        log_warning("rtnl: received neighbor for link '%d' we don't know about, ignoring.", ifindex);
+                /* when enumerating we might be out of sync, but we will get the neighbor again. Also,
+                 * kernel sends messages about neighbors after a link is removed. So, just ignore it. */
+                log_debug("rtnl: received neighbor for link '%d' we don't know about, ignoring.", ifindex);
                 return 0;
         }