From 41da54f501338072ec9543db2e07e2c046e3964e Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Tue, 2 May 2017 10:15:19 -0700 Subject: Use per-protocol default flow-hash config when the FIB table index is not known Change-Id: If088e75801831befc6bddb77ea20abe9288b93c4 Signed-off-by: Neale Ranns --- src/vnet/fib/fib_table.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/vnet/fib/fib_table.h') diff --git a/src/vnet/fib/fib_table.h b/src/vnet/fib/fib_table.h index 21773342428..a65fea741fc 100644 --- a/src/vnet/fib/fib_table.h +++ b/src/vnet/fib/fib_table.h @@ -665,6 +665,17 @@ extern u32 fib_table_create_and_lock(fib_protocol_t proto, extern flow_hash_config_t fib_table_get_flow_hash_config(u32 fib_index, fib_protocol_t proto); +/** + * @brief + * Get the flow hash configured used by the protocol + * + * @paran proto + * The protocol of the FIB (and thus the entries therein) + * + * @return The flow hash config + */ +extern flow_hash_config_t fib_table_get_default_flow_hash_config(fib_protocol_t proto); + /** * @brief * Set the flow hash configured used by the table -- cgit 1.2.3-korg