Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bridge, spoof check: remove drop rule index #873

Conversation

maiqueb
Copy link
Contributor

@maiqueb maiqueb commented Mar 29, 2023

Rules are appendend by default, thus using an index is redundant. Using an index also requires the full NFT cache, which causes a CNI ADD to be extremely slow where there are a lot of chains (~ 10K).

This doesn't improve the CNI ADD times when there are a lot of tables though ...

Addresses BZ: https://bugzilla.redhat.com/show_bug.cgi?id=2173485

@maiqueb
Copy link
Contributor Author

maiqueb commented Mar 30, 2023

/cc @mccv1r0 @dougbtv

@maiqueb
Copy link
Contributor Author

maiqueb commented Mar 30, 2023

The failed lint error is fixed by #871 ; we should merge it asap.

Let me know if I should rebase it.

@maiqueb
Copy link
Contributor Author

maiqueb commented Apr 4, 2023

/retest

@maiqueb maiqueb force-pushed the mac-spoof-remove-index-when-adding-rules branch 2 times, most recently from 9525b91 to f117c7c Compare April 4, 2023 14:24
Rules are appendend by default, thus using an index is redundant.
Using an index also requires the full NFT cache, which causes a CNI ADD
to be extremely slow.

Signed-off-by: Miguel Duarte Barroso <mdbarroso@redhat.com>
@maiqueb maiqueb force-pushed the mac-spoof-remove-index-when-adding-rules branch from f117c7c to cac8230 Compare April 4, 2023 15:10
@mccv1r0
Copy link
Member

mccv1r0 commented Apr 11, 2023

/lgtm

@squeed squeed merged commit 71aa710 into containernetworking:main Apr 17, 2023
5 checks passed
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.

None yet

3 participants