walnux/net/nat
Zhe Weng 879c337e30 net/nat: Use hashtable to optimize performance
Performance tested on simulator:

Before optimization:      -25% bandwidth @2k entries, -64% @10k entries
hashtable size=  2(1bit): -24% bandwidth @2k entries, -65% @10k entries
hashtable size=  4(2bits):-15% bandwidth @2k entries, -51% @10k entries
hashtable size= 32(5bits): -3% bandwidth @2k entries, -14% @10k entries
hashtable size=256(8bits): -1% bandwidth @2k entries,  -3% @10k entries

Note: Tested on worst performance, the earliest entry will be the worst.

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2022-12-22 20:20:12 +08:00
..
ipv4_nat.c net/ipfwd: Support ICMP error reply when forwarding IPv4 2022-12-02 15:26:45 +08:00
ipv4_nat_entry.c net/nat: Use hashtable to optimize performance 2022-12-22 20:20:12 +08:00
Kconfig net/nat: Use hashtable to optimize performance 2022-12-22 20:20:12 +08:00
Make.defs
nat.h net/nat: Use hashtable to optimize performance 2022-12-22 20:20:12 +08:00