mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 15:23:39 +00:00
zebra: install dst-src routes without NHG
The Linux kernel doesn't support dst-src routes with NHGs as nexthop, for some (rather dubious) caching reasons. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
parent
ee67699bd7
commit
1d341d461e
@ -2588,10 +2588,10 @@ ssize_t netlink_route_multipath_msg_encode(int cmd, struct zebra_dplane_ctx *ctx
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((!fpm && kernel_nexthops_supported()
|
if ((!fpm && kernel_nexthops_supported() &&
|
||||||
&& (!proto_nexthops_only()
|
(!proto_nexthops_only() || is_proto_nhg(dplane_ctx_get_nhe_id(ctx), 0)) &&
|
||||||
|| is_proto_nhg(dplane_ctx_get_nhe_id(ctx), 0)))
|
(!src_p || !src_p->prefixlen)) ||
|
||||||
|| (fpm && force_nhg)) {
|
(fpm && force_nhg)) {
|
||||||
/* Kernel supports nexthop objects */
|
/* Kernel supports nexthop objects */
|
||||||
if (IS_ZEBRA_DEBUG_KERNEL)
|
if (IS_ZEBRA_DEBUG_KERNEL)
|
||||||
zlog_debug("%s: %pFX nhg_id is %u", __func__, p,
|
zlog_debug("%s: %pFX nhg_id is %u", __func__, p,
|
||||||
|
Loading…
Reference in New Issue
Block a user