mirror of
https://github.com/espressif/openthread.git
synced 2026-09-14 05:00:11 +00:00
[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:
@@ -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
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user