Skip to content

Commit 93238fb

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 b560ee4 commit 93238fb

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
@@ -361,6 +361,7 @@ static void nft_flow_offload_eval(const struct nft_expr *expr,
361361
ct->proto.tcp.seen[1].flags |= IP_CT_TCP_FLAG_BE_LIBERAL;
362362
}
363363

364+
__set_bit(NF_FLOW_HW_BIDIRECTIONAL, &flow->flags);
364365
ret = flow_offload_add(flowtable, flow);
365366
if (ret < 0)
366367
goto err_flow_add;

0 commit comments

Comments
 (0)