OSDN Git Service

netfilter: nf_flow_table: remove unnecessary parameter of nf_flow_table_cleanup()
authorTaehee Yoo <ap420073@gmail.com>
Thu, 11 Oct 2018 18:01:54 +0000 (03:01 +0900)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 19 Oct 2018 11:25:22 +0000 (13:25 +0200)
parameter net of nf_flow_table_cleanup() is not used.
So that it can be removed.

Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_flow_table.h
net/netfilter/nf_flow_table_core.c
net/netfilter/nft_flow_offload.c

index 0e355f4..77e2761 100644 (file)
@@ -99,7 +99,7 @@ int nf_flow_table_iterate(struct nf_flowtable *flow_table,
                          void (*iter)(struct flow_offload *flow, void *data),
                          void *data);
 
-void nf_flow_table_cleanup(struct net *net, struct net_device *dev);
+void nf_flow_table_cleanup(struct net_device *dev);
 
 int nf_flow_table_init(struct nf_flowtable *flow_table);
 void nf_flow_table_free(struct nf_flowtable *flow_table);
index 185c633..a3cc2ef 100644 (file)
@@ -483,7 +483,7 @@ static void nf_flow_table_iterate_cleanup(struct nf_flowtable *flowtable,
        flush_delayed_work(&flowtable->gc_work);
 }
 
-void nf_flow_table_cleanup(struct net *net, struct net_device *dev)
+void nf_flow_table_cleanup(struct net_device *dev)
 {
        struct nf_flowtable *flowtable;
 
index d6bab8c..e82d9a9 100644 (file)
@@ -201,7 +201,7 @@ static int flow_offload_netdev_event(struct notifier_block *this,
        if (event != NETDEV_DOWN)
                return NOTIFY_DONE;
 
-       nf_flow_table_cleanup(dev_net(dev), dev);
+       nf_flow_table_cleanup(dev);
 
        return NOTIFY_DONE;
 }