Skip to content

bridge, spoof check: remove drop rule index#873

Merged
squeed merged 1 commit into
containernetworking:mainfrom
maiqueb:mac-spoof-remove-index-when-adding-rules
Apr 17, 2023
Merged

bridge, spoof check: remove drop rule index#873
squeed merged 1 commit into
containernetworking:mainfrom
maiqueb:mac-spoof-remove-index-when-adding-rules

Conversation

@maiqueb
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

maiqueb commented Mar 30, 2023

/cc @mccv1r0 @dougbtv

@maiqueb
Copy link
Copy Markdown
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
Copy Markdown
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 <[email protected]>
@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
Copy Markdown
Member

mccv1r0 commented Apr 11, 2023

/lgtm

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

3 participants