This patch implements the delete operation from the ruleset. It implements a new delete() function in nft_set_rhash. It is simpler to use than the already existing remove(), because it only takes the set and the key as arguments, whereas remove() expects a full nft_set_elem structure.
Showing the changes to include/uapi/linux (1 of 4 files). Show all
Unified · Split
| @@ -636,6 +636,7 @@ enum nft_lookup_attributes { · 635 unmodified lines | ||
| 636 | 636 | enum nft_dynset_ops { |
| 637 | 637 | NFT_DYNSET_OP_ADD, |
| 638 | 638 | NFT_DYNSET_OP_UPDATE, |
| 639 | + NFT_DYNSET_OP_DELETE, | |
| 639 | 640 | }; |
| 640 | 641 | |
| 641 | 642 | enum nft_dynset_flags { |