History

netfilter: nf_tables: flow offload expression

Add new instruction for the nf_tables VM that allows us to specify what flows are offloaded into a given flow table via name. This new instruction creates the flow entry and adds it to the flow table. Only established flows, ie. we have seen traffic in both directions, are added to the flow table. You can still decide to offload entries at a later stage via packet counting or checking the ct status in case you want to offload assured conntracks. This new extension depends on the conntrack subsystem.

Pablo Neira Ayuso committed 8 years ago

Commit a3c90f71 parent 7c23b624 files · +283 −0Browse files

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

Unified · Split

include/uapi/linux/netfilter/nf_tables.h+11−0
@@ -957,6 +957,17 @@ enum nft_ct_attributes { · 956 unmodified lines
957957 };
958958 #define NFTA_CT_MAX (__NFTA_CT_MAX - 1)
959959
960+/**
961+ * enum nft_flow_attributes - ct offload expression attributes
962+ * @NFTA_FLOW_TABLE_NAME: flow table name (NLA_STRING)
963+ */
964+enum nft_offload_attributes {
965+ NFTA_FLOW_UNSPEC,
966+ NFTA_FLOW_TABLE_NAME,
967+ __NFTA_FLOW_MAX,
968+};
969+#define NFTA_FLOW_MAX (__NFTA_FLOW_MAX - 1)
970+
960971 enum nft_limit_type {
961972 NFT_LIMIT_PKTS,
962973 NFT_LIMIT_PKT_BYTES