Skip to content

feat: expire stale neighbour entries#37

Open
akos011221 wants to merge 5 commits into
mainfrom
feat/neighbour-timeout
Open

feat: expire stale neighbour entries#37
akos011221 wants to merge 5 commits into
mainfrom
feat/neighbour-timeout

Conversation

@akos011221
Copy link
Copy Markdown
Owner

@akos011221 akos011221 commented May 16, 2026

ARP_TIMEOUT_SEC was unused so far. Added a matching NDP_TIMEOUT_SEC and implemented arp_expire() and ndp_expire() to evict timed out entries and rehash the probe cluster to avoid breaking the open-addressing lookup.

Stats thread will be responsible for sweeping the tables every NEIGHBOUR_SWEEP_INTERVAL_SEC seconds.

Closes #36

ARP_TIMEOUT_SEC was unused so far. Added a matching NDP_TIMEOUT_SEC and
implemented arp_expire() and ndp_expire() to evict timed out entries and
rehash the probe cluster to avoid breaking the open-addressing lookup.

Stats thread will be responsible for sweeping the tables every
NEIGHBOUR_SWEEP_INTERVAL_SEC seconds.

Signed-off-by: akos011221 <orbanakos2001@gmail.com>
ARP_TIMEOUT_SEC was unused so far. Added a matching NDP_TIMEOUT_SEC and
implemented arp_expire() and ndp_expire() to evict timed out entries and
rehash the probe cluster to avoid breaking the open-addressing lookup.

Stats thread will be responsible for sweeping the tables every
NEIGHBOUR_SWEEP_INTERVAL_SEC seconds.

Signed-off-by: akos011221 <orbanakos2001@gmail.com>
…1/userspace-packet-engine into feat/neighbour-timeout

Signed-off-by: akos011221 <orbanakos2001@gmail.com>
…1/userspace-packet-engine into feat/neighbour-timeout

Signed-off-by: akos011221 <orbanakos2001@gmail.com>
@akos011221 akos011221 force-pushed the feat/neighbour-timeout branch from ca87a8d to 4b4c620 Compare May 16, 2026 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make ADP/NDP entries expire after ARP_TIMEOUT_SEC

1 participant