diff options
author | Phil Sutter <phil@nwl.cc> | 2022-10-15 00:45:58 +0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2022-11-15 12:46:34 +0300 |
commit | 7d34aa3e03b6a56306296bd98b26c6a1710cd57b (patch) | |
tree | b6433794bb2069d4cbec27b49b4a730d879ca373 /net/netfilter/nft_osf.c | |
parent | 7394c2dd62dec8bdbe347d195c2dc1b332cc9ec5 (diff) | |
download | linux-7d34aa3e03b6a56306296bd98b26c6a1710cd57b.tar.xz |
netfilter: nf_tables: Extend nft_expr_ops::dump callback parameters
Add a 'reset' flag just like with nft_object_ops::dump. This will be
useful to reset "anonymous stateful objects", e.g. simple rule counters.
No functional change intended.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nft_osf.c')
-rw-r--r-- | net/netfilter/nft_osf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/netfilter/nft_osf.c b/net/netfilter/nft_osf.c index adacf95b6e2b..70820c66b591 100644 --- a/net/netfilter/nft_osf.c +++ b/net/netfilter/nft_osf.c @@ -92,7 +92,8 @@ static int nft_osf_init(const struct nft_ctx *ctx, return 0; } -static int nft_osf_dump(struct sk_buff *skb, const struct nft_expr *expr) +static int nft_osf_dump(struct sk_buff *skb, + const struct nft_expr *expr, bool reset) { const struct nft_osf *priv = nft_expr_priv(expr); |