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
1557 * enum nft_flowtable_flags - nf_tables flowtable flags1557 * enum nft_flowtable_flags - nf_tables flowtable flags
1558 *1558 *
1559 * @NFT_FLOWTABLE_HW_OFFLOAD: flowtable hardware offload is enabled1559 * @NFT_FLOWTABLE_HW_OFFLOAD: flowtable hardware offload is enabled
1560 * @NFT_FLOWTABLE_COUNTER: enable flow counters
1560 */1561 */
1561enum nft_flowtable_flags {1562enum nft_flowtable_flags {
1562 NFT_FLOWTABLE_HW_OFFLOAD = 0x1,1563 NFT_FLOWTABLE_HW_OFFLOAD = 0x1,
1563 NFT_FLOWTABLE_MASK = NFT_FLOWTABLE_HW_OFFLOAD1564 NFT_FLOWTABLE_COUNTER = 0x2,
1565 NFT_FLOWTABLE_MASK = (NFT_FLOWTABLE_HW_OFFLOAD |
1566 NFT_FLOWTABLE_COUNTER)
1564};1567};
1565 1568
1566/**1569/**

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