diff options
author | Felix Fietkau <nbd@nbd.name> | 2018-02-26 10:15:20 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-04-24 10:28:52 +0200 |
commit | 6bdc3c68d94c5d6adc675ee55361962e9dd2489d (patch) | |
tree | d46ad9da28c6d883883ca80de8a882e7d6dbec4c /include/net/netfilter | |
parent | 84453a90252ca0cd7d1bd229199a40c58bfe431e (diff) | |
download | linux-stable-6bdc3c68d94c5d6adc675ee55361962e9dd2489d.tar.gz linux-stable-6bdc3c68d94c5d6adc675ee55361962e9dd2489d.tar.bz2 linux-stable-6bdc3c68d94c5d6adc675ee55361962e9dd2489d.zip |
netfilter: nf_flow_table: make flow_offload_dead inline
It is too trivial to keep as a separate exported function
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/net/netfilter')
-rw-r--r-- | include/net/netfilter/nf_flow_table.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/net/netfilter/nf_flow_table.h b/include/net/netfilter/nf_flow_table.h index ab408adba688..5aa49524ebef 100644 --- a/include/net/netfilter/nf_flow_table.h +++ b/include/net/netfilter/nf_flow_table.h @@ -103,7 +103,10 @@ void nf_flow_table_cleanup(struct net *net, struct net_device *dev); int nf_flow_table_init(struct nf_flowtable *flow_table); void nf_flow_table_free(struct nf_flowtable *flow_table); -void flow_offload_dead(struct flow_offload *flow); +static inline void flow_offload_dead(struct flow_offload *flow) +{ + flow->flags |= FLOW_OFFLOAD_DYING; +} int nf_flow_snat_port(const struct flow_offload *flow, struct sk_buff *skb, unsigned int thoff, |