Add a new flag to turn on flowtable counters which are stored in the conntrack entry.
Showing the changes to include/uapi/linux (1 of 3 files). Show all
Unified · Split
| @@ -1557,10 +1557,13 @@ enum nft_object_attributes { · 1556 unmodified lines | ||
| 1557 | 1557 | * enum nft_flowtable_flags - nf_tables flowtable flags |
| 1558 | 1558 | * |
| 1559 | 1559 | * @NFT_FLOWTABLE_HW_OFFLOAD: flowtable hardware offload is enabled |
| 1560 | + * @NFT_FLOWTABLE_COUNTER: enable flow counters | |
| 1560 | 1561 | */ |
| 1561 | 1562 | enum nft_flowtable_flags { |
| 1562 | 1563 | NFT_FLOWTABLE_HW_OFFLOAD = 0x1, |
| 1563 | − NFT_FLOWTABLE_MASK = NFT_FLOWTABLE_HW_OFFLOAD | |
| 1564 | + NFT_FLOWTABLE_COUNTER = 0x2, | |
| 1565 | + NFT_FLOWTABLE_MASK = (NFT_FLOWTABLE_HW_OFFLOAD | | |
| 1566 | + NFT_FLOWTABLE_COUNTER) | |
| 1564 | 1567 | }; |
| 1565 | 1568 | |
| 1566 | 1569 | /** |