]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd30b19647db80acd0933f226e3d80405565adccc
treeba27ac40ee59d6d83365ff1ce05f38933b7a5037
parentbe216e37e6fc9e71a232758ac9267949d976455f
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