Skip to content

Conversation

@AltraMayor
Copy link
Owner

Calling del_fib_entry_locked() on a neighbor prefix would've put Gatekeeper's FIB table in an inconsistent state. Besides this problem, there's no need to remove neighbor prefixes. This pull request forbids the operation.

Simplify remove_prefix_from_lpm_locked() by reusing
check_prefix_exists_locked().
There are two motivations to drop remove_prefix_from_lpm_locked():

1. Thanks to the simplification of remove_prefix_from_lpm_locked(),
   what was accomplished in the previous patch, having its whole
   code within del_fib_entry_locked(), its only caller, became
   reasonable.

2. This prepares del_fib_entry_locked() for the following patch,
   which addresses an issue of del_fib_entry_locked().
@AltraMayor AltraMayor added this to the First deployment milestone Aug 24, 2021
@AltraMayor
Copy link
Owner Author

Tested on XIA1 server.

@AltraMayor AltraMayor merged commit f970f7b into master Aug 24, 2021
@AltraMayor AltraMayor deleted the fib-del branch August 24, 2021 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants