projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'block-5.17-2022-03-04' of git://git.kernel.dk/linux-block
[linux-2.6-microblaze.git]
/
net
/
netfilter
/
nf_tables_offload.c
diff --git
a/net/netfilter/nf_tables_offload.c
b/net/netfilter/nf_tables_offload.c
index
9656c16
..
2d36952
100644
(file)
--- a/
net/netfilter/nf_tables_offload.c
+++ b/
net/netfilter/nf_tables_offload.c
@@
-94,7
+94,8
@@
struct nft_flow_rule *nft_flow_rule_create(struct net *net,
expr = nft_expr_first(rule);
while (nft_expr_more(rule, expr)) {
- if (expr->ops->offload_flags & NFT_OFFLOAD_F_ACTION)
+ if (expr->ops->offload_action &&
+ expr->ops->offload_action(expr))
num_actions++;
expr = nft_expr_next(expr);