aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStanislav Zaikin <zstaseg@gmail.com>2021-02-13 16:32:15 +0300
committerNeale Ranns <neale@graphiant.com>2021-06-16 14:31:45 +0000
commit4fc68ee54a1951051d73a482eaa3ddcdb9974445 (patch)
tree6b50a4c576cd52c0de4496c3cdd51dc41003feaf /src
parentd52a8921b85057682f2cf5bae7d6353142ba279a (diff)
fib: copy the path extentions when creating fib src rr entry
Type: fix Signed-off-by: Stanislav Zaikin <zstaseg@gmail.com> Change-Id: Ib4957bfc03b0dfc90fd28689d5b32cc3d82e7b74
Diffstat (limited to 'src')
-rw-r--r--src/vnet/fib/fib_entry_src_rr.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/vnet/fib/fib_entry_src_rr.c b/src/vnet/fib/fib_entry_src_rr.c
index d0256b9f24b..d8bc09c5f1a 100644
--- a/src/vnet/fib/fib_entry_src_rr.c
+++ b/src/vnet/fib/fib_entry_src_rr.c
@@ -24,6 +24,7 @@
#include "fib_entry_cover.h"
#include "fib_entry.h"
#include "fib_table.h"
+#include "fib_path_ext.h"
/*
* fib_entry_src_rr_resolve_via_connected
@@ -93,6 +94,7 @@ fib_entry_src_rr_use_covers_pl (fib_entry_src_t *src,
{
fib_node_index_t *entries = NULL;
dpo_proto_t proto;
+ fib_entry_src_t *s;
proto = fib_proto_to_dpo(fib_entry->fe_prefix.fp_proto);
vec_add1(entries, fib_entry_get_index(fib_entry));
@@ -107,6 +109,14 @@ fib_entry_src_rr_use_covers_pl (fib_entry_src_t *src,
else
{
src->fes_pl = cover->fe_parent;
+ vec_foreach (s,cover->fe_srcs)
+ {
+ if (s->fes_pl != cover->fe_parent)
+ continue;
+
+ src->fes_path_exts.fpel_exts = vec_dup (s->fes_path_exts.fpel_exts);
+ break;
+ }
}
vec_free(entries);
}
@@ -195,6 +205,7 @@ fib_entry_src_rr_deactivate (fib_entry_src_t *src,
fib_path_list_unlock(src->fes_pl);
src->fes_pl = FIB_NODE_INDEX_INVALID;
+ vec_free (src->fes_path_exts.fpel_exts);
src->fes_entry_flags = FIB_ENTRY_FLAG_NONE;
}