History

netfilter: flowtable: add counter support

Add a new flag to turn on flowtable counters which are stored in the conntrack entry.

Pablo Neira Ayuso committed 6 years ago

Commit 53c2b281 parent cfbd1123 files · +12 −1Browse files

Showing the changes to include/uapi/linux (1 of 3 files). Show all

Unified · Split

include/uapi/linux/netfilter/nf_tables.h+4−1
@@ -1557,10 +1557,13 @@ enum nft_object_attributes { · 1556 unmodified lines
15571557 * enum nft_flowtable_flags - nf_tables flowtable flags
15581558 *
15591559 * @NFT_FLOWTABLE_HW_OFFLOAD: flowtable hardware offload is enabled
1560+ * @NFT_FLOWTABLE_COUNTER: enable flow counters
15601561 */
15611562 enum nft_flowtable_flags {
15621563 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)
15641567 };
15651568
15661569 /**

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t