History

Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next

Pablo Neira Ayuso says: ==================== Netfilter/IPVS updates for net-next The following patchset contains Netfilter updates for net-next: 1) Support for rejecting packets from the prerouting chain, from Laura Garcia Liebana. 2) Remove useless assignment in pipapo, from Stefano Brivio. 3) On demand hook registration in IPVS, from Julian Anastasov. 4) Expire IPVS connection from process context to not overload timers, also from Julian. 5) Fallback to conntrack TCP tracker to handle connection reuse in IPVS, from Julian Anastasov. 6) Several patches to support for chain bindings. 7) Expose enum nft_chain_flags through UAPI. 8) Reject unsupported chain flags from the netlink control plane. ====================

David S. Miller committed 6 years ago

Commit e80a07b2 parents 3d07ae5 c1f79a212 files · +428 −89Browse files

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

Unified · Split

include/uapi/linux/netfilter/nf_tables.h+14−0
@@ -184,6 +184,15 @@ enum nft_table_attributes { · 183 unmodified lines
184184 };
185185 #define NFTA_TABLE_MAX (__NFTA_TABLE_MAX - 1)
186186
187+enum nft_chain_flags {
188+ NFT_CHAIN_BASE = (1 << 0),
189+ NFT_CHAIN_HW_OFFLOAD = (1 << 1),
190+ NFT_CHAIN_BINDING = (1 << 2),
191+};
192+#define NFT_CHAIN_FLAGS (NFT_CHAIN_BASE | \
193+ NFT_CHAIN_HW_OFFLOAD | \
194+ NFT_CHAIN_BINDING)
195+
187196 /**
188197 * enum nft_chain_attributes - nf_tables chain netlink attributes
189198 *
@@ -196,6 +205,7 @@ enum nft_table_attributes { · 6 unmodified lines
196205 * @NFTA_CHAIN_TYPE: type name of the string (NLA_NUL_STRING)
197206 * @NFTA_CHAIN_COUNTERS: counter specification of the chain (NLA_NESTED: nft_counter_attributes)
198207 * @NFTA_CHAIN_FLAGS: chain flags
208+ * @NFTA_CHAIN_ID: uniquely identifies a chain in a transaction (NLA_U32)
199209 */
200210 enum nft_chain_attributes {
201211 NFTA_CHAIN_UNSPEC,
@@ -209,6 +219,7 @@ enum nft_chain_attributes { · 7 unmodified lines
209219 NFTA_CHAIN_COUNTERS,
210220 NFTA_CHAIN_PAD,
211221 NFTA_CHAIN_FLAGS,
222+ NFTA_CHAIN_ID,
212223 __NFTA_CHAIN_MAX
213224 };
214225 #define NFTA_CHAIN_MAX (__NFTA_CHAIN_MAX - 1)
@@ -238,6 +249,7 @@ enum nft_rule_attributes { · 23 unmodified lines
238249 NFTA_RULE_PAD,
239250 NFTA_RULE_ID,
240251 NFTA_RULE_POSITION_ID,
252+ NFTA_RULE_CHAIN_ID,
241253 __NFTA_RULE_MAX
242254 };
243255 #define NFTA_RULE_MAX (__NFTA_RULE_MAX - 1)
@@ -468,11 +480,13 @@ enum nft_data_attributes { · 224 unmodified lines
468480 *
469481 * @NFTA_VERDICT_CODE: nf_tables verdict (NLA_U32: enum nft_verdicts)
470482 * @NFTA_VERDICT_CHAIN: jump target chain name (NLA_STRING)
483+ * @NFTA_VERDICT_CHAIN_ID: jump target chain ID (NLA_U32)
471484 */
472485 enum nft_verdict_attributes {
473486 NFTA_VERDICT_UNSPEC,
474487 NFTA_VERDICT_CODE,
475488 NFTA_VERDICT_CHAIN,
489+ NFTA_VERDICT_CHAIN_ID,
476490 __NFTA_VERDICT_MAX
477491 };
478492 #define NFTA_VERDICT_MAX (__NFTA_VERDICT_MAX - 1)