Commit c1f305a
netfilter: nf_tables: add .abort_skip_removal flag for set types
commit f175b46 upstream.
The pipapo set backend is the only user of the .abort interface so far.
To speed up pipapo abort path, removals are skipped.
The follow up patch updates the rbtree to use to build an array of
ordered elements, then use binary search. This needs a new .abort
interface but, unlike pipapo, it also need to undo/remove elements.
Add a flag and use it from the pipapo set backend.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Florian Westphal <fw@strlen.de>
Cc: "Kris Karas (Bug Reporting)" <bugs-a21@moonlit-rail.com>
Cc: Genes Lists <lists@sapience.com>
Cc: Philip Müller <philm@manjaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 2ad6657 commit c1f305a
3 files changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
456 | 456 | | |
457 | 457 | | |
458 | 458 | | |
| 459 | + | |
459 | 460 | | |
460 | 461 | | |
461 | 462 | | |
| |||
513 | 514 | | |
514 | 515 | | |
515 | 516 | | |
| 517 | + | |
516 | 518 | | |
517 | 519 | | |
518 | 520 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7821 | 7821 | | |
7822 | 7822 | | |
7823 | 7823 | | |
7824 | | - | |
| 7824 | + | |
| 7825 | + | |
7825 | 7826 | | |
7826 | 7827 | | |
7827 | 7828 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2370 | 2370 | | |
2371 | 2371 | | |
2372 | 2372 | | |
| 2373 | + | |
2373 | 2374 | | |
2374 | 2375 | | |
2375 | 2376 | | |
| |||
2394 | 2395 | | |
2395 | 2396 | | |
2396 | 2397 | | |
| 2398 | + | |
2397 | 2399 | | |
2398 | 2400 | | |
2399 | 2401 | | |
| |||
0 commit comments