[tmf] set default snoop cache entry count to 1/16 of total (#9440)

This commit sets the default value of the configuration
`TMF_ADDRESS_CACHE_MAX_SNOOP_ENTRIES` to `1/16` of the total number
of address cache entries. This ensures that the snoop entries scale
with the total number of entries.
This commit is contained in:
Abtin Keshavarzian
2023-09-21 12:47:26 -07:00
committed by GitHub
parent 93e72bcbf9
commit 85aff45965
+3 -1
View File
@@ -57,9 +57,11 @@
* The maximum number of EID-to-RLOC cache entries that can be used for "snoop optimization" where an entry is created
* by inspecting a received message.
*
* By default a 1/16 fraction of `OPENTHREAD_CONFIG_TMF_ADDRESS_CACHE_ENTRIES` is used.
*
*/
#ifndef OPENTHREAD_CONFIG_TMF_ADDRESS_CACHE_MAX_SNOOP_ENTRIES
#define OPENTHREAD_CONFIG_TMF_ADDRESS_CACHE_MAX_SNOOP_ENTRIES 2
#define OPENTHREAD_CONFIG_TMF_ADDRESS_CACHE_MAX_SNOOP_ENTRIES (OPENTHREAD_CONFIG_TMF_ADDRESS_CACHE_ENTRIES / 16)
#endif
/**