Skip to content

Rnat map stale entry cleanup

socketLB: cleaning up stale entries from socket-level reverse NAT map

The reverse NAT map is an LRU hashmap, so the cleaning up of stale entries is the responsibility of the LRU, which can cause performance issues due to filling up of the map to full capacity and only then the LRU kicks in. This PR aims to solve that issue by removing the entries when the socket is released by attaching a bpf program on cgroup/sock_release.

Fixes: #38649 (closed)

Signed-off-by: ChinmayaSharma-hue chinmaysharma1020@gmail.com

Merge request reports

Loading