summaryrefslogtreecommitdiff
path: root/lib/nexthop.c
diff options
context:
space:
mode:
authorXiao Liang <shaw.leon@gmail.com>2022-12-15 17:04:32 +0800
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2023-08-11 15:39:43 +0000
commit1e4351d3b162832b77cb41840565a85da80dd218 (patch)
treeccfeb077f4347f7f455270cd9f31a31a71653e54 /lib/nexthop.c
parent1539b571496129712ab88d99c7d74ff21520d87e (diff)
lib, zebra: Fix EVPN nexthop config order
Delay EVPN route addition to synchronize with rib_delete(), which now uses early route queue. Signed-off-by: Xiao Liang <shaw.leon@gmail.com> (cherry picked from commit cea3f7f25a23e485d4f814b670c11c92249568e1)
Diffstat (limited to 'lib/nexthop.c')
-rw-r--r--lib/nexthop.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/nexthop.c b/lib/nexthop.c
index 248acd2700..1eeed4adfa 100644
--- a/lib/nexthop.c
+++ b/lib/nexthop.c
@@ -812,6 +812,7 @@ void nexthop_copy_no_recurse(struct nexthop *copy,
memcpy(&copy->gate, &nexthop->gate, sizeof(nexthop->gate));
memcpy(&copy->src, &nexthop->src, sizeof(nexthop->src));
memcpy(&copy->rmap_src, &nexthop->rmap_src, sizeof(nexthop->rmap_src));
+ memcpy(&copy->rmac, &nexthop->rmac, sizeof(nexthop->rmac));
copy->rparent = rparent;
if (nexthop->nh_label)
nexthop_add_labels(copy, nexthop->nh_label_type,