diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-11-12 02:29:55 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-11-13 06:42:26 +0300 |
commit | 8bb69f3b2918788435cbd5834c66682642c09fba (patch) | |
tree | 2cd43fa701a2c7d23548c523e93e3b3192ce9d9c /net/netfilter/nf_flow_table_inet.c | |
parent | f1363e058b84e61d39f9796fa806090ad7a28ebd (diff) | |
download | linux-8bb69f3b2918788435cbd5834c66682642c09fba.tar.xz |
netfilter: nf_tables: add flowtable offload control plane
This patch adds the NFTA_FLOWTABLE_FLAGS attribute that allows users to
specify the NF_FLOWTABLE_HW_OFFLOAD flag. This patch also adds a new
setup interface for the flowtable type to perform the flowtable offload
block callback configuration.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netfilter/nf_flow_table_inet.c')
-rw-r--r-- | net/netfilter/nf_flow_table_inet.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/netfilter/nf_flow_table_inet.c b/net/netfilter/nf_flow_table_inet.c index 593357aedb36..1e70fd504da3 100644 --- a/net/netfilter/nf_flow_table_inet.c +++ b/net/netfilter/nf_flow_table_inet.c @@ -24,6 +24,7 @@ nf_flow_offload_inet_hook(void *priv, struct sk_buff *skb, static struct nf_flowtable_type flowtable_inet = { .family = NFPROTO_INET, .init = nf_flow_table_init, + .setup = nf_flow_table_offload_setup, .free = nf_flow_table_free, .hook = nf_flow_offload_inet_hook, .owner = THIS_MODULE, |