sr: fix sr_policy fib table 33/41533/3
authorArtem Glazychev <[email protected]>
Wed, 14 Aug 2024 04:16:23 +0000 (11:16 +0700)
committerFlorin Coras <[email protected]>
Mon, 17 Feb 2025 17:24:29 +0000 (17:24 +0000)
fib_table_get_flow_hash_config accepts fib_index, not fib_table.

Type: fix

Change-Id: I0372ca1b6caab4a34bc0590f9856d89deff6ee90
Signed-off-by: Artem Glazychev <[email protected]>
src/vnet/srv6/sr_policy_rewrite.c

index a911462..9258666 100644 (file)
@@ -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));