Thread (25 messages) flat view 25 messages, 3 authors, 2023-01-19

Re: [PATCH net-next v2 3/7] netfilter: flowtable: allow unidirectional rules

From: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Date: 2023-01-17 15:15:20
Also in: netfilter-devel

On Fri, Jan 13, 2023 at 05:55:44PM +0100, Vlad Buslov wrote:
Modify flow table offload to support unidirectional connections by
extending enum nf_flow_flags with new "NF_FLOW_HW_BIDIRECTIONAL" flag. Only
offload reply direction when the flag is not set. This infrastructure
                                           ^^^ s///, I believe? :-)

...
-	ok_count += flow_offload_tuple_add(offload, flow_rule[1],
-					   FLOW_OFFLOAD_DIR_REPLY);
+	if (test_bit(NF_FLOW_HW_BIDIRECTIONAL, &offload->flow->flags))
+		ok_count += flow_offload_tuple_add(offload, flow_rule[1],
+						   FLOW_OFFLOAD_DIR_REPLY);
 	if (ok_count == 0)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help