Commit 6bdc3c68 authored by Felix Fietkau's avatar Felix Fietkau Committed by Pablo Neira Ayuso

netfilter: nf_flow_table: make flow_offload_dead inline

It is too trivial to keep as a separate exported function
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent 84453a90
...@@ -103,7 +103,10 @@ void nf_flow_table_cleanup(struct net *net, struct net_device *dev); ...@@ -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); int nf_flow_table_init(struct nf_flowtable *flow_table);
void nf_flow_table_free(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, int nf_flow_snat_port(const struct flow_offload *flow,
struct sk_buff *skb, unsigned int thoff, struct sk_buff *skb, unsigned int thoff,
......
...@@ -113,12 +113,6 @@ void flow_offload_free(struct flow_offload *flow) ...@@ -113,12 +113,6 @@ void flow_offload_free(struct flow_offload *flow)
} }
EXPORT_SYMBOL_GPL(flow_offload_free); EXPORT_SYMBOL_GPL(flow_offload_free);
void flow_offload_dead(struct flow_offload *flow)
{
flow->flags |= FLOW_OFFLOAD_DYING;
}
EXPORT_SYMBOL_GPL(flow_offload_dead);
static u32 flow_offload_hash(const void *data, u32 len, u32 seed) static u32 flow_offload_hash(const void *data, u32 len, u32 seed)
{ {
const struct flow_offload_tuple *tuple = data; const struct flow_offload_tuple *tuple = data;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment