aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorArtem Glazychev <glazychev@mts.ru>2024-08-14 11:16:23 +0700
committerFlorin Coras <florin.coras@gmail.com>2025-02-17 17:24:29 +0000
commitb1185ca677b0faaa800bdc968dc553a073e0cbca (patch)
treeec8640884c9be1796f0e4535043d41880d891e5b /src
parent9a834c0112b0987bbbb173f6da67d3c111aeecad (diff)
sr: fix sr_policy fib table
fib_table_get_flow_hash_config accepts fib_index, not fib_table. Type: fix Change-Id: I0372ca1b6caab4a34bc0590f9856d89deff6ee90 Signed-off-by: Artem Glazychev <glazychev@mts.ru>
Diffstat (limited to 'src')
-rw-r--r--src/vnet/srv6/sr_policy_rewrite.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vnet/srv6/sr_policy_rewrite.c b/src/vnet/srv6/sr_policy_rewrite.c
index a9114628f95..92586669378 100644
--- a/src/vnet/srv6/sr_policy_rewrite.c
+++ b/src/vnet/srv6/sr_policy_rewrite.c
@@ -503,8 +503,9 @@ update_lb (ip6_sr_policy_t * sr_policy)
};
/* Add FIB entry for BSID */
- fhc = fib_table_get_flow_hash_config (sr_policy->fib_table,
- FIB_PROTOCOL_IP6);
+ fhc = fib_table_get_flow_hash_config (
+ fib_table_find (FIB_PROTOCOL_IP6, sr_policy->fib_table),
+ FIB_PROTOCOL_IP6);
dpo_set (&sr_policy->bsid_dpo, DPO_LOAD_BALANCE, DPO_PROTO_IP6,
load_balance_create (0, DPO_PROTO_IP6, fhc));