Skip to content

Commit f522fa8

Browse files
nbd168frank-w
authored andcommitted
netfilter: nf_tables: fix bidirectional offload regression
Commit 8f84780 ("netfilter: flowtable: allow unidirectional rules") made unidirectional flow offload possible, while completely ignoring (and breaking) bidirectional flow offload for nftables. Add the missing flag that was left out as an exercise for the reader :) Cc: Vlad Buslov <[email protected]> Fixes: 8f84780 ("netfilter: flowtable: allow unidirectional rules") Reported-by: Daniel Golle <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
1 parent 5bc4bf7 commit f522fa8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/netfilter/nft_flow_offload.c

+1
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,7 @@ static void nft_flow_offload_eval(const struct nft_expr *expr,
357357
ct->proto.tcp.seen[1].flags |= IP_CT_TCP_FLAG_BE_LIBERAL;
358358
}
359359

360+
__set_bit(NF_FLOW_HW_BIDIRECTIONAL, &flow->flags);
360361
ret = flow_offload_add(flowtable, flow);
361362
if (ret < 0)
362363
goto err_flow_add;

0 commit comments

Comments
 (0)