netfilter: nftables: counter hardware offload support
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 15 Apr 2021 18:10:18 +0000 (20:10 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 18 Apr 2021 20:04:49 +0000 (22:04 +0200)
commitb72920f6e4a9d6607b723d69b7f412c829769c75
treeba27ac40ee59d6d83365ff1ce05f38933b7a5037
parent8826218215de1aae9d89a6ea8d3786f224711334
netfilter: nftables: counter hardware offload support

This patch adds the .offload_stats operation to synchronize hardware
stats with the expression data. Update the counter expression to use
this new interface. The hardware stats are retrieved from the netlink
dump path via FLOW_CLS_STATS command to the driver.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_tables.h
include/net/netfilter/nf_tables_offload.h
net/netfilter/nf_tables_api.c
net/netfilter/nf_tables_offload.c
net/netfilter/nft_counter.c