mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-04 02:46:34 +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;
|
||||
}
|
||||
|
||||
/* Deal with errors that occur because of races in link handling. */
|
||||
if (is_cmd
|
||||
&& ((msg_type == RTM_DELROUTE
|
||||
&& (-errnum == ENODEV || -errnum == ESRCH))
|
||||
|| (msg_type == RTM_NEWROUTE
|
||||
&& (-errnum == ENETDOWN || -errnum == EEXIST)))) {
|
||||
/*
|
||||
* Deal with errors that occur because of races in link handling
|
||||
* or types are not supported in kernel.
|
||||
*/
|
||||
if (is_cmd &&
|
||||
((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)
|
||||
zlog_debug("%s: error: %s type=%s(%u), seq=%u, pid=%u",
|
||||
nl->name, safe_strerror(-errnum),
|
||||
|
Loading…
Reference in New Issue
Block a user