]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
openvswitch: remove unused functions
authorJiri Benc <jbenc@redhat.com>
Wed, 19 Oct 2016 09:26:36 +0000 (11:26 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Oct 2016 19:11:55 +0000 (15:11 -0400)
ovs_vport_deferred_free is not used anywhere. It's the only caller of
free_vport_rcu thus this one can be removed, too.

Signed-off-by: Jiri Benc <jbenc@redhat.com>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/vport.c
net/openvswitch/vport.h

index 7387418ac514ae0ab679aa1b0d677ddbc9363f7b..9d0a87845843039d1a1a4d18f297d84843d3a26e 100644 (file)
@@ -465,22 +465,6 @@ int ovs_vport_receive(struct vport *vport, struct sk_buff *skb,
 }
 EXPORT_SYMBOL_GPL(ovs_vport_receive);
 
-static void free_vport_rcu(struct rcu_head *rcu)
-{
-       struct vport *vport = container_of(rcu, struct vport, rcu);
-
-       ovs_vport_free(vport);
-}
-
-void ovs_vport_deferred_free(struct vport *vport)
-{
-       if (!vport)
-               return;
-
-       call_rcu(&vport->rcu, free_vport_rcu);
-}
-EXPORT_SYMBOL_GPL(ovs_vport_deferred_free);
-
 static unsigned int packet_length(const struct sk_buff *skb)
 {
        unsigned int length = skb->len - ETH_HLEN;
index f01f28a567adb50db4c0a270a50980be39185a43..46e5b69927c72f9cec5c5d32034120ad87439961 100644 (file)
@@ -149,7 +149,6 @@ struct vport_ops {
 struct vport *ovs_vport_alloc(int priv_size, const struct vport_ops *,
                              const struct vport_parms *);
 void ovs_vport_free(struct vport *);
-void ovs_vport_deferred_free(struct vport *vport);
 
 #define VPORT_ALIGN 8