summaryrefslogtreecommitdiffstats
path: root/net/openvswitch/vport.c
diff options
context:
space:
mode:
authorJiri Benc <jbenc@redhat.com>2016-10-19 11:26:36 +0200
committerDavid S. Miller <davem@davemloft.net>2016-10-19 21:11:55 +0200
commitf33eb0cf9984f79e8643eaac888e4b6a06a8e221 (patch)
tree2eb19d0594ce135bb579c80aef80f64579301f0f /net/openvswitch/vport.c
parentbpf: Detect identical PTR_TO_MAP_VALUE_OR_NULL registers (diff)
downloadlinux-f33eb0cf9984f79e8643eaac888e4b6a06a8e221.tar.xz
linux-f33eb0cf9984f79e8643eaac888e4b6a06a8e221.zip
openvswitch: remove unused functions
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>
Diffstat (limited to 'net/openvswitch/vport.c')
-rw-r--r--net/openvswitch/vport.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/net/openvswitch/vport.c b/net/openvswitch/vport.c
index 7387418ac514..9d0a87845843 100644
--- a/net/openvswitch/vport.c
+++ b/net/openvswitch/vport.c
@@ -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;