There were various flaws in it that motivated its removal: - No hash collision handling mechanism. In case that would happen, the behavior of the network connection would be unknown. This is the main drawback - The lookup is not that much more efficient than the default one. The only difference of gain is in connection comparison (a u32t comparison vs a full connection compare). But the list handling is the same. It's made worse by the presence of a negatives match array which can be easily filled in and becomes then fully usless, appart from consuming CPU. As well as adding a new connection: it requires the whole cache to be cleared which is unefficient. - Not memory efficient, even compared to a proper hash table. Two arrays instead of one etc... All of this could be fixed by using a proper hash table, though it remains to be seen if such object could fit in Zephyr core. Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
24 lines
593 B
Text
24 lines
593 B
Text
CONFIG_NETWORKING=y
|
|
CONFIG_NET_TEST=y
|
|
CONFIG_NET_L2_DUMMY=y
|
|
CONFIG_NET_UDP=y
|
|
CONFIG_NET_TCP=n
|
|
CONFIG_NET_MAX_CONN=64
|
|
CONFIG_NET_IPV6=y
|
|
CONFIG_NET_IPV4=y
|
|
CONFIG_NET_BUF=y
|
|
CONFIG_ZTEST_STACKSIZE=2048
|
|
CONFIG_MAIN_STACK_SIZE=1024
|
|
CONFIG_NET_PKT_RX_COUNT=10
|
|
CONFIG_NET_PKT_TX_COUNT=10
|
|
CONFIG_NET_BUF_RX_COUNT=15
|
|
CONFIG_NET_BUF_TX_COUNT=15
|
|
CONFIG_NET_LOG=y
|
|
CONFIG_ENTROPY_GENERATOR=y
|
|
CONFIG_TEST_RANDOM_GENERATOR=y
|
|
CONFIG_NET_IF_UNICAST_IPV6_ADDR_COUNT=2
|
|
CONFIG_NET_IF_UNICAST_IPV4_ADDR_COUNT=2
|
|
|
|
# Turn off UDP checksum checking as the test fails otherwise.
|
|
CONFIG_NET_UDP_CHECKSUM=n
|
|
CONFIG_ZTEST=y
|