This patch adds a new NFT_MSG_GETOBJ_RESET command perform an atomic dump-and-reset of the stateful object. This also comes with add support for atomic dump and reset for counter and quota objects.
Showing the changes to include/uapi/linux (1 of 5 files). Show all
Unified · Split
| @@ -89,6 +89,7 @@ enum nft_verdicts { · 88 unmodified lines | ||
| 89 | 89 | * @NFT_MSG_NEWOBJ: create a stateful object (enum nft_obj_attributes) |
| 90 | 90 | * @NFT_MSG_GETOBJ: get a stateful object (enum nft_obj_attributes) |
| 91 | 91 | * @NFT_MSG_DELOBJ: delete a stateful object (enum nft_obj_attributes) |
| 92 | + * @NFT_MSG_GETOBJ_RESET: get and reset a stateful object (enum nft_obj_attributes) | |
| 92 | 93 | */ |
| 93 | 94 | enum nf_tables_msg_types { |
| 94 | 95 | NFT_MSG_NEWTABLE, |
| @@ -112,6 +113,7 @@ enum nf_tables_msg_types { · 17 unmodified lines | ||
| 112 | 113 | NFT_MSG_NEWOBJ, |
| 113 | 114 | NFT_MSG_GETOBJ, |
| 114 | 115 | NFT_MSG_DELOBJ, |
| 116 | + NFT_MSG_GETOBJ_RESET, | |
| 115 | 117 | NFT_MSG_MAX, |
| 116 | 118 | }; |
| 117 | 119 | |