network: neighbor: downgrade log level

As commented in the code, kernel sends messages about neighbors after
a link is removed.
This commit is contained in:
Yu Watanabe
2021-04-29 03:16:30 +09:00
parent 83e7c37b19
commit 27a213392f
+3 -4
View 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;
}