projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge tag 'iommu-updates-v4.1' of git://git.kernel.org/pub/scm/linux/kernel/git/joro...
[firefly-linux-kernel-4.4.55.git]
/
net
/
netfilter
/
nft_counter.c
diff --git
a/net/netfilter/nft_counter.c
b/net/netfilter/nft_counter.c
index c89ee486ce54d6d5ba1064970de0c87805bf0dc9..17591239229f75564b944dc7db61e1dae6a2f1f1 100644
(file)
--- a/
net/netfilter/nft_counter.c
+++ b/
net/netfilter/nft_counter.c
@@
-24,7
+24,7
@@
struct nft_counter {
};
static void nft_counter_eval(const struct nft_expr *expr,
};
static void nft_counter_eval(const struct nft_expr *expr,
- struct nft_
data data[NFT_REG_MAX + 1]
,
+ struct nft_
regs *regs
,
const struct nft_pktinfo *pkt)
{
struct nft_counter *priv = nft_expr_priv(expr);
const struct nft_pktinfo *pkt)
{
struct nft_counter *priv = nft_expr_priv(expr);
@@
-92,6
+92,7
@@
static struct nft_expr_type nft_counter_type __read_mostly = {
.ops = &nft_counter_ops,
.policy = nft_counter_policy,
.maxattr = NFTA_COUNTER_MAX,
.ops = &nft_counter_ops,
.policy = nft_counter_policy,
.maxattr = NFTA_COUNTER_MAX,
+ .flags = NFT_EXPR_STATEFUL,
.owner = THIS_MODULE,
};
.owner = THIS_MODULE,
};