Skip to contentSkip to conversation

netfilter: nft_ct: track register operations

PATCH New Pablo Neira Ayuso 1 participant 1 message Mar 3, 2022

Subsystems (2)
lore
Share & tools
lore

Pablo Neira Ayuso

author maintainer
#0 lore raw

PATCH v2 1/1 netfilter: nft_ct: track register operations

Check if the destination register already contains the data that this ct store expression performs. This allows to skip this redundant operation. If the destination contains a different selector, update the register tracking information.

---
v2: missing EXPORT_SYMBOL for nft_expr_reduce_bitwise break nft_ct.c as module

 net/netfilter/nft_bitwise.c |  1 +
 net/netfilter/nft_ct.c      | 47 +++++++++++++++++++++++++++++++++++++
 2 files changed, 48 insertions(+)
net/netfilter/nft_bitwise.c +1 -0
index 7b727d3ebf9d..8bc22b2012cb 100644
@@ -522,3 +522,4 @@ bool nft_expr_reduce_bitwise(struct nft_regs_track *track,
 
 	return false;
 }
+EXPORT_SYMBOL_GPL(nft_expr_reduce_bitwise);
net/netfilter/nft_ct.c +47 -0

67 lines not on this page · raw message

Signature · 1 line
2.30.2