mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 01:47:29 +00:00
Merge pull request #11922 from anlancs/fix/zebra-broken-evpn
zebra: fix broken evpn
This commit is contained in:
commit
db391f7d06
@ -1033,12 +1033,18 @@ static int netlink_parse_error(const struct nlsock *nl, struct nlmsghdr *h,
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Deal with errors that occur because of races in link handling. */
|
/*
|
||||||
if (is_cmd
|
* Deal with errors that occur because of races in link handling
|
||||||
&& ((msg_type == RTM_DELROUTE
|
* or types are not supported in kernel.
|
||||||
&& (-errnum == ENODEV || -errnum == ESRCH))
|
*/
|
||||||
|| (msg_type == RTM_NEWROUTE
|
if (is_cmd &&
|
||||||
&& (-errnum == ENETDOWN || -errnum == EEXIST)))) {
|
((msg_type == RTM_DELROUTE &&
|
||||||
|
(-errnum == ENODEV || -errnum == ESRCH)) ||
|
||||||
|
(msg_type == RTM_NEWROUTE &&
|
||||||
|
(-errnum == ENETDOWN || -errnum == EEXIST)) ||
|
||||||
|
((msg_type == RTM_NEWTUNNEL || msg_type == RTM_DELTUNNEL ||
|
||||||
|
msg_type == RTM_GETTUNNEL) &&
|
||||||
|
(-errnum == EOPNOTSUPP)))) {
|
||||||
if (IS_ZEBRA_DEBUG_KERNEL)
|
if (IS_ZEBRA_DEBUG_KERNEL)
|
||||||
zlog_debug("%s: error: %s type=%s(%u), seq=%u, pid=%u",
|
zlog_debug("%s: error: %s type=%s(%u), seq=%u, pid=%u",
|
||||||
nl->name, safe_strerror(-errnum),
|
nl->name, safe_strerror(-errnum),
|
||||||
|
Loading…
Reference in New Issue
Block a user